Merge branch 'main' into fix/after-meeting-ends-migration

This commit is contained in:
kodiakhq[bot] 2022-08-31 18:31:52 +00:00 committed by GitHub
commit 87f0dcea30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -38,6 +38,11 @@ async function globalSetup(/* config: FullConfig */) {
// await loginAsUser("teamfree", browser);
await loginAsUser("teampro", browser);
await browser.close();
// Clean up auth state after all tests are done
return () => {
const dir = `playwright/artifacts`;
fs.readdirSync(dir).forEach((f) => fs.rmSync(`${dir}/${f}`));
};
}
export default globalSetup;

View File

@ -15,7 +15,7 @@ const headless = !!process.env.CI || !!process.env.PLAYWRIGHT_HEADLESS;
const config: PlaywrightTestConfig = {
forbidOnly: !!process.env.CI,
retries: 1,
workers: headless ? os.cpus().length : 1,
workers: os.cpus().length,
timeout: 60_000,
maxFailures: headless ? 10 : undefined,
reporter: [