test: wait for async terminal tab registration in bottomPanelShortcuts test

Amp-Thread-ID: https://ampcode.com/threads/T-019c1c14-d3a2-740c-a304-840f14971bde
This commit is contained in:
bymyself
2026-02-01 19:04:38 -08:00
parent d3f616f8e7
commit a650ce7478

View File

@@ -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"]')