diff --git a/browser_tests/tests/domWidget.spec.ts b/browser_tests/tests/domWidget.spec.ts index 7a8c3637d..3995bfdf6 100644 --- a/browser_tests/tests/domWidget.spec.ts +++ b/browser_tests/tests/domWidget.spec.ts @@ -5,8 +5,8 @@ import { comfyPageFixture as test } from '../fixtures/ComfyPage' test.describe('DOM Widget', () => { test('Collapsed multiline textarea is not visible', async ({ comfyPage }) => { await comfyPage.loadWorkflow('collapsed_multiline') - - expect(comfyPage.page.locator('.comfy-multiline-input')).not.toBeVisible() + const textareaWidget = comfyPage.page.locator('.comfy-multiline-input') + await expect(textareaWidget).not.toBeVisible() }) test('Multiline textarea correctly collapses', async ({ comfyPage }) => { diff --git a/browser_tests/tests/remoteWidgets.spec.ts b/browser_tests/tests/remoteWidgets.spec.ts index 6ba781641..233bda811 100644 --- a/browser_tests/tests/remoteWidgets.spec.ts +++ b/browser_tests/tests/remoteWidgets.spec.ts @@ -321,6 +321,7 @@ test.describe('Remote COMBO Widget', () => { // Click refresh button await clickRefreshButton(comfyPage, nodeName) + await comfyPage.page.waitForTimeout(200) // Verify the selected value of the widget is the first option in the refreshed list const refreshedValue = await getWidgetValue(comfyPage, nodeName) diff --git a/browser_tests/tests/sidebar/workflows.spec.ts b/browser_tests/tests/sidebar/workflows.spec.ts index b5f3411a4..9b853168f 100644 --- a/browser_tests/tests/sidebar/workflows.spec.ts +++ b/browser_tests/tests/sidebar/workflows.spec.ts @@ -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',