Skip to content

Commit

Permalink
chore: clear localStorage after each test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengjitf committed Dec 25, 2023
1 parent a1ab71a commit 4dd055a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/insomnia-smoke-test/playwright/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,8 @@ export const test = baseTest.extend<{
});
},
});

// Some cleanups after each test
test.afterEach(async ({ page }) => {
await page.evaluate(() => window.localStorage.clear());
});

0 comments on commit 4dd055a

Please sign in to comment.