site overflow test: 60 s for closing Chromium (the 5 s hook default times out on a busy machine)

This commit is contained in:
CRTkafa 2026-10-11 20:50:36 +00:00
parent ffc36a3538
commit fa5c293b35

View file

@ -16,7 +16,8 @@ try {
} catch (e) { skipWhy = (e as Error).message.split('\n')[0]!; }
if (!browser) console.warn(`site overflow test skipped: no Chromium could launch (${skipWhy}). Run \`bunx playwright install chromium\`.`);
afterAll(async () => { await browser?.close(); });
// closing Chromium can take longer than the 5 s hook default on a busy machine
afterAll(async () => { await browser?.close(); }, 60_000);
describe.skipIf(!browser)('site: no horizontal overflow', () => {
for (const scheme of ['light', 'dark'] as const) {