Merge branch 'main' into fix/after-meeting-ends-migration
This commit is contained in:
commit
87f0dcea30
|
@ -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;
|
||||
|
|
|
@ -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: [
|
||||
|
|
Loading…
Reference in New Issue
Block a user