Skip to content

Commit 8d2f127

Browse files
committed
feat: support mermaid
1 parent e2909b0 commit 8d2f127

21 files changed

+974
-5420
lines changed

__tests__/example.spec.ts

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
// example.spec.ts
22
import { test, expect } from '@playwright/test';
3-
import {default as domains} from '../domains.json';
3+
import { default as domains } from '../domains.json';
44

55
const stagingUrl = 'https://staging-docs-page-website-euw1-dzpolnxswq-ew.a.run.app';
66

77
// skip these as these are not working (user error)
8-
const skipList = ['dokumentacja.otwartaturystyka.pl']
8+
const skipList = ['dokumentacja.otwartaturystyka.pl'];
99

1010
domains.forEach(domain => {
11-
if (!skipList.includes(domain[0])) {
11+
if (!skipList.includes(domain[0])) {
1212
test(`${domain[0]}`, async ({ page }) => {
13+
const response = await page.goto(`https://${domain[0]}`);
1314

14-
const response = await page.goto(`https://${domain[0]}`);
15+
expect(response).toBeDefined();
16+
expect(response!.status()).toBe(200);
1517

16-
expect(response).toBeDefined();
17-
expect(response!.status()).toBe(200);
18+
const screenshotName = `${domain[1]}-original.png`;
19+
await expect(page).toHaveScreenshot(screenshotName);
1820

19-
const screenshotName = `${domain[1]}-original.png`;
20-
await expect(page).toHaveScreenshot(`${domain[1]}-original.png`);
21-
22-
await page.goto(`${stagingUrl}/${domain[1]}`)
23-
await expect(page).toHaveScreenshot(`${domain[1]}-original.png`);
21+
await page.goto(`${stagingUrl}/${domain[1]}`);
22+
await expect(page).toHaveScreenshot(screenshotName);
2423
});
25-
}
26-
})
24+
}
25+
});
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)