Skip to content

Commit

Permalink
only clear after usage
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyAsh5114 committed Dec 23, 2023
1 parent b02ebb5 commit 80aa3c4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export const test = baseTest.extend<{}, { workerStorageState: string }>({
const id = test.info().parallelIndex;
const fileName = path.resolve(test.info().project.outputDir, `.auth/${id}.json`);
const testSession = process.env[`TEST_SESSION_${id + 1}`] ?? "";
await clearUserData(testSession);

// Important: make sure we authenticate in a clean environment by unsetting storage state.
const page = await browser.newPage({ storageState: undefined });
Expand Down

0 comments on commit 80aa3c4

Please sign in to comment.