Fix flaky playwright test (#1152)

This commit is contained in:
Chenlei Hu
2024-10-07 17:11:20 -04:00
committed by GitHub
parent cc17bee945
commit f8343d0f93

View File

@@ -416,10 +416,9 @@ test.describe('Menu', () => {
const tab = comfyPage.menu.workflowsTab
await tab.open()
expect(await tab.getTopLevelSavedWorkflowNames()).toEqual([
'workflow1.json',
'workflow2.json'
])
expect(await tab.getTopLevelSavedWorkflowNames()).toEqual(
expect.arrayContaining(['workflow1.json', 'workflow2.json'])
)
})
test('Does not report warning when switching between opened workflows', async ({