Skip to content

Commit

Permalink
await browser.close()
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloster committed Sep 10, 2024
1 parent 4233d6d commit acf5ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/__tests__/e2e/puppeteer.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jest.retryTimes(ENV_DEFAULT.RETRY_ATTEMPTS);

beforeEach(async () => {
await jestPuppeteer.resetBrowser();
const browser = await jestPuppeteer.getBrowser();
const userAgent = await browser.userAgent();
await page.setUserAgent(`${userAgent}bot`);

Expand Down Expand Up @@ -54,5 +55,4 @@ beforeEach(async () => {
}
}
});
await userAgent.close();
});

0 comments on commit acf5ac7

Please sign in to comment.