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-12 04:50:36 +08:00
parent 96d1e6b62d
commit bd15f790cc

View file

@ -16,7 +16,8 @@ try {
} catch (e) { skipWhy = (e as Error).message.split('\n')[0]!; } } 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\`.`); 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', () => { describe.skipIf(!browser)('site: no horizontal overflow', () => {
for (const scheme of ['light', 'dark'] as const) { for (const scheme of ['light', 'dark'] as const) {