Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions tests/drawingBrowser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ declare global {
}
}

describe.skipIf(!findBrowserPath())('drawing on the canvas', { timeout: 30_000 }, () => {
/* Waits are 30s, not 10s: CI shares a 2-vCPU runner with other Chromium and
Docker files, and under that load a different drag wait overran 10s on each
rerun (CHE-6913). The test timeout stays above the wait so a stuck wait still
reports its own TimeoutError. */
const WAIT_MS = 30_000

describe.skipIf(!findBrowserPath())('drawing on the canvas', { timeout: 60_000 }, () => {
let vite: ViteDevServer
let browser: Browser
let page: Page
Expand All @@ -42,7 +48,7 @@ describe.skipIf(!findBrowserPath())('drawing on the canvas', { timeout: 30_000 }
await vite.listen()
browser = await getBrowser()
page = await browser.newPage()
page.setDefaultTimeout(10_000)
page.setDefaultTimeout(WAIT_MS)
page.on('pageerror', (err) => errors.push(String(err)))
await page.setRequestInterception(true)
page.on('request', async (req) => {
Expand Down Expand Up @@ -166,7 +172,7 @@ describe.skipIf(!findBrowserPath())('drawing on the canvas', { timeout: 30_000 }
}
return true
},
{ timeout: 10_000 },
{ timeout: WAIT_MS },
)
.toBe(true)
return result!
Expand Down
Loading