diff --git a/browser_tests/tests/bottomPanelShortcuts.spec.ts b/browser_tests/tests/bottomPanelShortcuts.spec.ts index 354f0fb51..cc1567218 100644 --- a/browser_tests/tests/bottomPanelShortcuts.spec.ts +++ b/browser_tests/tests/bottomPanelShortcuts.spec.ts @@ -147,6 +147,11 @@ test.describe('Bottom Panel Shortcuts', { tag: '@ui' }, () => { test('should maintain panel state when switching to terminal', async ({ comfyPage }) => { + // Wait for terminal tab to be registered (loaded asynchronously) + await expect( + comfyPage.page.locator('[id*="logs-terminal"]') + ).toBeVisible({ timeout: 10000 }) + // Open shortcuts panel first await comfyPage.page .locator('button[aria-label*="Keyboard Shortcuts"]')