We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent caff169 commit d564580Copy full SHA for d564580
test/config/jest-playwright.setup-tests.js
@@ -41,7 +41,7 @@ beforeAll(async () => {
41
});
42
43
beforeEach(async () => {
44
- await global.jestPlaywright.resetPage();
+ await global.jestPlaywright.resetContext();
45
46
// Goto URL ()
47
// https://playwright.dev/#path=docs%2Fapi.md&q=pagegotourl-options
@@ -51,9 +51,4 @@ beforeEach(async () => {
51
// to fail (e.g. AJAX requests). To avoid these issues, this hook ensures
52
// that each tests begins by a blank HTML page.
53
await page.goto(BLANK_URL);
54
-
55
- // Clear local storage
56
- await page.evaluate(() => {
57
- window.localStorage.clear();
58
- });
59
0 commit comments