diff --git a/client/__tests__/e2e/puppeteer.setup.js b/client/__tests__/e2e/puppeteer.setup.js index 45ae8bebd..cb80f7b76 100644 --- a/client/__tests__/e2e/puppeteer.setup.js +++ b/client/__tests__/e2e/puppeteer.setup.js @@ -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`); @@ -54,5 +55,4 @@ beforeEach(async () => { } } }); - await userAgent.close(); });