From a650ce74789770312fa52de79f0a597beb048006 Mon Sep 17 00:00:00 2001 From: bymyself Date: Sun, 1 Feb 2026 19:04:38 -0800 Subject: [PATCH] test: wait for async terminal tab registration in bottomPanelShortcuts test Amp-Thread-ID: https://ampcode.com/threads/T-019c1c14-d3a2-740c-a304-840f14971bde --- browser_tests/tests/bottomPanelShortcuts.spec.ts | 5 +++++ 1 file changed, 5 insertions(+) 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"]')