From a735b52c75e356837b309ba05920681c2184abb2 Mon Sep 17 00:00:00 2001 From: Jorge Galat Date: Fri, 15 Sep 2023 13:12:46 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20e2e:=20increase=20wait?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- e2e/common/app.ts | 2 +- e2e/components/navbar.ts | 2 +- playwright.config.ts | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/e2e/common/app.ts b/e2e/common/app.ts index 9e1ed6d70..afc6978ce 100644 --- a/e2e/common/app.ts +++ b/e2e/common/app.ts @@ -4,7 +4,7 @@ export default function ({ page }: CommonTest) { const reload = async () => { await new Promise((r) => setTimeout(r, 15_000)); await page.reload({ waitUntil: 'domcontentloaded' }); - await new Promise((r) => setTimeout(r, 15_000)); + await new Promise((r) => setTimeout(r, 30_000)); await page.waitForFunction( () => { return document.querySelectorAll('.MuiSkeleton-root').length === 0; diff --git a/e2e/components/navbar.ts b/e2e/components/navbar.ts index f75d4bc43..58b82f05c 100644 --- a/e2e/components/navbar.ts +++ b/e2e/components/navbar.ts @@ -6,7 +6,7 @@ export default function (page: Page) { const goTo = async (path: Path) => { await page.getByTestId(`navbar-link-${path}`).click(); await page.waitForURL(`**/${path}`, { timeout: 15_000 }); - await new Promise((resolve) => setTimeout(resolve, 15_000)); + await new Promise((resolve) => setTimeout(resolve, 30_000)); await page.waitForFunction( () => { return document.querySelectorAll('.MuiSkeleton-root').length === 0; diff --git a/playwright.config.ts b/playwright.config.ts index 3e49c0532..ccb9d0480 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -20,6 +20,7 @@ const config: PlaywrightTestConfig = { 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36', headless: true, actionTimeout: 0, + viewport: { width: 1920, height: 1080 }, baseURL: 'http://localhost:3000', trace: 'on-first-retry', },