Attempt: fix the CI errors
This commit is contained in:
parent
dc2338bb83
commit
2670c670f6
3 changed files with 13 additions and 3 deletions
5
compat-tests/fixtures/react18/package/tsconfig.json
Normal file
5
compat-tests/fixtures/react18/package/tsconfig.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"jsx": "react"
|
||||
}
|
||||
}
|
|
@ -103,13 +103,18 @@ async function testTheatreOnPage(page: Page, {url}: {url: string}) {
|
|||
try {
|
||||
await page.goto(url, {
|
||||
waitUntil: 'domcontentloaded',
|
||||
timeout: 30000,
|
||||
timeout: 1000 * 60 * 2,
|
||||
})
|
||||
|
||||
// give the console listener 3 seconds to resolve, otherwise fail the test
|
||||
await Promise.race([
|
||||
d.promise,
|
||||
new Promise((_, reject) => setTimeout(() => reject('Timed out'), 30000)),
|
||||
new Promise((_, reject) =>
|
||||
setTimeout(
|
||||
() => reject('Did not intercept any test-related console logs'),
|
||||
30000,
|
||||
),
|
||||
),
|
||||
])
|
||||
} finally {
|
||||
page.off('console', processConsoleEvents)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue