-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
974 additions
and
5,420 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
// example.spec.ts | ||
import { test, expect } from '@playwright/test'; | ||
import {default as domains} from '../domains.json'; | ||
import { default as domains } from '../domains.json'; | ||
|
||
const stagingUrl = 'https://staging-docs-page-website-euw1-dzpolnxswq-ew.a.run.app'; | ||
|
||
// skip these as these are not working (user error) | ||
const skipList = ['dokumentacja.otwartaturystyka.pl'] | ||
const skipList = ['dokumentacja.otwartaturystyka.pl']; | ||
|
||
domains.forEach(domain => { | ||
if (!skipList.includes(domain[0])) { | ||
if (!skipList.includes(domain[0])) { | ||
test(`${domain[0]}`, async ({ page }) => { | ||
const response = await page.goto(`https://${domain[0]}`); | ||
|
||
const response = await page.goto(`https://${domain[0]}`); | ||
expect(response).toBeDefined(); | ||
expect(response!.status()).toBe(200); | ||
|
||
expect(response).toBeDefined(); | ||
expect(response!.status()).toBe(200); | ||
const screenshotName = `${domain[1]}-original.png`; | ||
await expect(page).toHaveScreenshot(screenshotName); | ||
|
||
const screenshotName = `${domain[1]}-original.png`; | ||
await expect(page).toHaveScreenshot(`${domain[1]}-original.png`); | ||
|
||
await page.goto(`${stagingUrl}/${domain[1]}`) | ||
await expect(page).toHaveScreenshot(`${domain[1]}-original.png`); | ||
await page.goto(`${stagingUrl}/${domain[1]}`); | ||
await expect(page).toHaveScreenshot(screenshotName); | ||
}); | ||
} | ||
}) | ||
} | ||
}); |
Binary file removed
BIN
-99.7 KB
...__/example.spec.ts-snapshots/JagandeepBrar-LunaSea-original-chromium-darwin.png
Binary file not shown.
Binary file removed
BIN
-104 KB
__tests__/example.spec.ts-snapshots/ayphu-docs-original-chromium-darwin.png
Binary file not shown.
Binary file removed
BIN
-55.9 KB
...ple.spec.ts-snapshots/iamganeshagrawal-goconfigenv-original-chromium-darwin.png
Binary file not shown.
Binary file removed
BIN
-147 KB
...ts__/example.spec.ts-snapshots/invertase-docs-page-original-chromium-darwin.png
Binary file not shown.
Binary file removed
BIN
-81.9 KB
...le.spec.ts-snapshots/invertase-firebase-extensions-original-chromium-darwin.png
Binary file not shown.
Binary file removed
BIN
-133 KB
__tests__/example.spec.ts-snapshots/invertase-melos-original-chromium-darwin.png
Binary file not shown.
Binary file removed
BIN
-156 KB
...e.spec.ts-snapshots/invertase-react-query-firebase-original-chromium-darwin.png
Binary file not shown.
Binary file removed
BIN
-27.6 KB
...sts__/example.spec.ts-snapshots/invertase-zapp-run-original-chromium-darwin.png
Binary file not shown.
Binary file removed
BIN
-131 KB
__tests__/example.spec.ts-snapshots/leancodepl-patrol-original-chromium-darwin.png
Binary file not shown.
Binary file removed
BIN
-185 KB
...e.spec.ts-snapshots/rydmike-flex-color-scheme-docs-original-chromium-darwin.png
Binary file not shown.
Binary file removed
BIN
-175 KB
...__/example.spec.ts-snapshots/widgetbook-widgetbook-original-chromium-darwin.png
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ hydrateRoot( | |
<BrowserRouter> | ||
<RemixBrowser /> | ||
</BrowserRouter>, | ||
); | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.