Updates e2e tests
This commit is contained in:
@@ -58,7 +58,7 @@
|
|||||||
<body class="error-page">
|
<body class="error-page">
|
||||||
<main>
|
<main>
|
||||||
<div class="emoji" aria-hidden="true">🔍</div>
|
<div class="emoji" aria-hidden="true">🔍</div>
|
||||||
<h1>404 Not Found</h1>
|
<h1 data-testid="404-title">404 Not Found</h1>
|
||||||
<p>This page went off to find itself. We’re not sure it’s coming back.</p>
|
<p>This page went off to find itself. We’re not sure it’s coming back.</p>
|
||||||
<p><a href="/">Back to mifi Ventures →</a></p>
|
<p><a href="/">Back to mifi Ventures →</a></p>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
<body class="error-page">
|
<body class="error-page">
|
||||||
<main>
|
<main>
|
||||||
<div class="emoji" aria-hidden="true">👋</div>
|
<div class="emoji" aria-hidden="true">👋</div>
|
||||||
<h1>410 Gone</h1>
|
<h1 data-testid="410-title">410 Gone</h1>
|
||||||
<p>This page has left the building. We’ve moved on—and so should you.</p>
|
<p>This page has left the building. We’ve moved on—and so should you.</p>
|
||||||
<p><a href="/">Back to mifi Ventures →</a></p>
|
<p><a href="/">Back to mifi Ventures →</a></p>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -140,4 +140,16 @@ test.describe('visual regression', () => {
|
|||||||
await expect(page.locator('#cookie-banner')).not.toBeVisible();
|
await expect(page.locator('#cookie-banner')).not.toBeVisible();
|
||||||
await expect(page).toHaveScreenshot('terms-of-service.png', { fullPage: true });
|
await expect(page).toHaveScreenshot('terms-of-service.png', { fullPage: true });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('404 page matches snapshot', async ({ page }) => {
|
||||||
|
await page.goto('/404');
|
||||||
|
await expect(page).toHaveTitle(/404 | mifi Ventures/);
|
||||||
|
await expect(page).toHaveScreenshot('404.png', { fullPage: true });
|
||||||
|
});
|
||||||
|
|
||||||
|
test('410 page matches snapshot', async ({ page }) => {
|
||||||
|
await page.goto('/410');
|
||||||
|
await expect(page).toHaveTitle(/410 | mifi Ventures/);
|
||||||
|
await expect(page).toHaveScreenshot('410.png', { fullPage: true });
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
BIN
tests/visual.spec.ts-snapshots/404-chromium-desktop-linux.png
Normal file
BIN
tests/visual.spec.ts-snapshots/404-chromium-desktop-linux.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
BIN
tests/visual.spec.ts-snapshots/404-chromium-mobile-linux.png
Normal file
BIN
tests/visual.spec.ts-snapshots/404-chromium-mobile-linux.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
BIN
tests/visual.spec.ts-snapshots/410-chromium-desktop-linux.png
Normal file
BIN
tests/visual.spec.ts-snapshots/410-chromium-desktop-linux.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
BIN
tests/visual.spec.ts-snapshots/410-chromium-mobile-linux.png
Normal file
BIN
tests/visual.spec.ts-snapshots/410-chromium-mobile-linux.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
Reference in New Issue
Block a user