[Test] Fix flaky playwright tests (#3170)

This commit is contained in:
Chenlei Hu
2025-03-20 21:33:05 -04:00
committed by GitHub
parent fc7ed1bf09
commit ed153dccd9
3 changed files with 4 additions and 2 deletions

View File

@@ -227,6 +227,7 @@ test.describe('Workflows sidebar', () => {
await topbar.saveWorkflowAs('workflow1.json')
await comfyPage.confirmDialog.click('overwrite')
await comfyPage.page.waitForTimeout(200)
// The old workflow1.json should be deleted and the new one should be saved.
expect(await comfyPage.menu.workflowsTab.getOpenedWorkflowNames()).toEqual([
'workflow2.json',