From 7ddc237568dd566e5e875b0b98c444639daa8fb7 Mon Sep 17 00:00:00 2001 From: Nicolas Merget Date: Fri, 5 Jul 2024 10:46:28 +0200 Subject: [PATCH] chore: increase timeout for tests --- showcases/patternhub/tests/default.spec.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/showcases/patternhub/tests/default.spec.ts b/showcases/patternhub/tests/default.spec.ts index 0951bdc5c3d..cc2ebd91846 100644 --- a/showcases/patternhub/tests/default.spec.ts +++ b/showcases/patternhub/tests/default.spec.ts @@ -9,7 +9,8 @@ const getDefaultScreenshotTest = async ( ) => { test(`${type} should match screenshot`, async ({ page }) => { await page.goto(`${path}`, { - waitUntil: 'domcontentloaded' + waitUntil: 'domcontentloaded', + timeout: 20_000 }); await fn(page); await expect(page).toHaveScreenshot([name, 'patternhub.png']); @@ -25,7 +26,6 @@ for (const group of Components) { `./components/${component.name}/docs/Angular`, async (page) => { expect(await page.locator('h2').isVisible()); - await page.waitForTimeout(500); } ); }); @@ -40,7 +40,6 @@ for (const group of Components) { .first() .isVisible(); expect(functionalCount); - await page.waitForTimeout(500); } ); }); @@ -51,7 +50,6 @@ for (const group of Components) { `./components/${component.name}/properties?fullscreen=true&noh1=true`, async (page) => { expect(await page.locator('h2').isVisible()); - await page.waitForTimeout(500); } ); });