Reduce mock test flake on CI
This commit is contained in:
parent
62040e5c1a
commit
e41973c238
4 changed files with 41 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue