diff --git a/browser_tests/tests/interaction.spec.ts b/browser_tests/tests/interaction.spec.ts index 87c3e8a0bf..f3ac5678b9 100644 --- a/browser_tests/tests/interaction.spec.ts +++ b/browser_tests/tests/interaction.spec.ts @@ -13,6 +13,9 @@ import type { NodeReference } from '../fixtures/utils/litegraphUtils' test.beforeEach(async ({ comfyPage }) => { await comfyPage.settings.setSetting('Comfy.UseNewMenu', 'Disabled') + // Wait for the legacy menu to appear and canvas to settle after layout shift. + await comfyPage.page.locator('.comfy-menu').waitFor({ state: 'visible' }) + await comfyPage.nextFrame() }) test.describe('Item Interaction', { tag: ['@screenshot', '@node'] }, () => {