Skip to content
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions showcases/patternhub/tests/default.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const getDefaultScreenshotTest = async (
) => {
test(`${type} should match screenshot`, async ({ page }) => {
await page.goto(`${path}`, {
waitUntil: 'domcontentloaded'
waitUntil: 'networkidle'
});
await fn(page);
await expect(page).toHaveScreenshot([name, 'patternhub.png']);
Expand All @@ -35,8 +35,8 @@ for (const group of Components) {
`overview`,
`.${group.path}/${component.name}/overview?fullscreen=true`,
async (page) => {
const firstH2 = page.locator('h1').first();
await expect(firstH2).toBeVisible();
const firstH1 = page.locator('h1').first();
await expect(firstH1).toBeVisible();
}
);
});
Expand Down