Updates e2e tests
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
2026-03-12 17:36:18 -03:00
parent c15adf8e3c
commit 718165aa23
7 changed files with 14 additions and 2 deletions

View File

@@ -58,7 +58,7 @@
<body class="error-page">
<main>
<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. Were not sure its coming back.</p>
<p><a href="/">Back to mifi Ventures →</a></p>
</main>

View File

@@ -58,7 +58,7 @@
<body class="error-page">
<main>
<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. Weve moved on—and so should you.</p>
<p><a href="/">Back to mifi Ventures →</a></p>
</main>

View File

@@ -140,4 +140,16 @@ test.describe('visual regression', () => {
await expect(page.locator('#cookie-banner')).not.toBeVisible();
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 });
});
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB