site overflow test: 60 s for closing Chromium (the 5 s hook default times out on a busy machine)
This commit is contained in:
parent
96d1e6b62d
commit
bd15f790cc
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue