Reduce mock test flake on CI

This commit is contained in:
trevor-signal 2023-12-05 17:33:10 -05:00 committed by GitHub
parent 62040e5c1a
commit e41973c238
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 41 additions and 3 deletions

View file

@ -62,13 +62,20 @@ export class App extends EventEmitter {
SIGNAL_CI_CONFIG: this.options.config,
},
locale: 'en',
timeout: 20 * SECOND,
timeout: 30 * SECOND,
});
// wait for the first window to load
await pTimeout(
(async () => {
const page = await this.privApp?.firstWindow();
const page = await this.getWindow();
if (process.env.TRACING) {
await page.context().tracing.start({
name: 'tracing',
screenshots: true,
snapshots: true,
});
}
await page?.waitForLoadState('load');
})(),
20 * SECOND