Skip to content

Commit

Permalink
💚 e2e: increase wait
Browse files Browse the repository at this point in the history
  • Loading branch information
jgalat committed Sep 15, 2023
1 parent 7619724 commit a735b52
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e/common/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion e2e/components/navbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down

0 comments on commit a735b52

Please sign in to comment.