fix(e2e): address CTO/QA review — remove mock-incompatible test, fix smoke test, fix a11y

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Barcode Betty
2026-03-31 17:59:42 +00:00
parent 43fe68cce6
commit 7b144aae5e
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -1,8 +1,8 @@
import { test, expect } from './fixtures';
test("app loads", async ({ page }) => {
await page.goto("/");
await expect(page).toHaveTitle(/CartSnitch/);
// Unauthenticated users are redirected to login
test('app loads', async ({ page }) => {
await page.goto('/');
// Unauthenticated users are redirected to /login
await expect(page).toHaveURL(/\/login/);
await expect(page.getByRole('heading', { name: /sign in|log in/i })).toBeVisible();
});
+2 -2
View File
@@ -46,7 +46,7 @@ export function Login() {
}
return (
<div className="flex min-h-screen flex-col items-center justify-center px-4">
<main className="flex min-h-screen flex-col items-center justify-center px-4">
<h1 className="mb-2 text-3xl font-bold text-gray-900">CartSnitch</h1>
<p className="mb-8 text-sm text-gray-500">Track prices. Save money.</p>
@@ -92,6 +92,6 @@ export function Login() {
Sign up
</Link>
</p>
</div>
</main>
)
}