From a4ef67a018429f5b6e6010923b3f30a8aa7987e8 Mon Sep 17 00:00:00 2001 From: kaloster Date: Tue, 10 Sep 2024 12:26:05 -0400 Subject: [PATCH] set def timeout --- client/__tests__/e2e/puppeteer.setup.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/__tests__/e2e/puppeteer.setup.js b/client/__tests__/e2e/puppeteer.setup.js index cb80f7b76..8c0dad632 100644 --- a/client/__tests__/e2e/puppeteer.setup.js +++ b/client/__tests__/e2e/puppeteer.setup.js @@ -18,8 +18,9 @@ setDefaultOptions({ timeout: 60 * 1000 }); jest.retryTimes(ENV_DEFAULT.RETRY_ATTEMPTS); beforeEach(async () => { + await page.setDefaultTimeout(90000); await jestPuppeteer.resetBrowser(); - const browser = await jestPuppeteer.getBrowser(); + const userAgent = await browser.userAgent(); await page.setUserAgent(`${userAgent}bot`);