We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9f7c46 commit 7a11be2Copy full SHA for 7a11be2
showcases/patternhub/tests/default.spec.ts
@@ -9,7 +9,7 @@ const getDefaultScreenshotTest = async (
9
) => {
10
test(`${type} should match screenshot`, async ({ page }) => {
11
await page.goto(`${path}`, {
12
- waitUntil: 'domcontentloaded'
+ waitUntil: 'networkidle'
13
});
14
await fn(page);
15
await expect(page).toHaveScreenshot([name, 'patternhub.png']);
@@ -35,8 +35,8 @@ for (const group of Components) {
35
`overview`,
36
`.${group.path}/${component.name}/overview?fullscreen=true`,
37
async (page) => {
38
- const firstH2 = page.locator('h1').first();
39
- await expect(firstH2).toBeVisible();
+ const firstH1 = page.locator('h1').first();
+ await expect(firstH1).toBeVisible();
40
}
41
);
42
0 commit comments