Skip to content

Commit

Permalink
chore: increase timeout for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget committed Jul 5, 2024
1 parent 87cc0cc commit 7ddc237
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions showcases/patternhub/tests/default.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand All @@ -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);
}
);
});
Expand All @@ -40,7 +40,6 @@ for (const group of Components) {
.first()
.isVisible();
expect(functionalCount);
await page.waitForTimeout(500);
}
);
});
Expand All @@ -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);
}
);
});
Expand Down

0 comments on commit 7ddc237

Please sign in to comment.