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

@ -359,6 +359,12 @@ export class Bootstrap {
const { logsDir } = this;
await fs.rename(logsDir, outDir);
const page = await app?.getWindow();
if (process.env.TRACING) {
await page
?.context()
.tracing.stop({ path: path.join(outDir, 'trace.zip') });
}
if (app) {
const window = await app.getWindow();
const screenshot = await window.screenshot();