Skip to content

Commit 096c174

Browse files
committed
test: give command-palette hydration poll a 20s timeout
expect.poll defaults to 1s and does not inherit the 30s case budget, so the readiness retry could fail under concurrent Vite load before the search-trigger handler attached.
1 parent 01a3fc6 commit 096c174

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

‎website/tests/ssr-hydration.e2e.test.ts‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,11 +1013,14 @@ describe('website dev-SSR → hydration (real browser)', { concurrent: false },
10131013
// SSR exposes the trigger before hydration attaches its event. Opening is
10141014
// idempotent, so retry the observable interaction until the dialog exists.
10151015
await expect
1016-
.poll(async () => {
1017-
if (await searchInput.isVisible()) return true;
1018-
await trigger.click();
1019-
return searchInput.isVisible();
1020-
})
1016+
.poll(
1017+
async () => {
1018+
if (await searchInput.isVisible()) return true;
1019+
await trigger.click();
1020+
return searchInput.isVisible();
1021+
},
1022+
{ timeout: PLAYWRIGHT_ACTION_TIMEOUT },
1023+
)
10211024
.toBe(true);
10221025
await searchInput.fill('tanstack');
10231026
const firstResult = page.locator('.search-entity').first();

0 commit comments

Comments
 (0)