From 7b144aae5e7a0d01e6c96ad29ab2e7c02f29a3c5 Mon Sep 17 00:00:00 2001 From: Barcode Betty Date: Tue, 31 Mar 2026 17:59:42 +0000 Subject: [PATCH] =?UTF-8?q?fix(e2e):=20address=20CTO/QA=20review=20?= =?UTF-8?q?=E2=80=94=20remove=20mock-incompatible=20test,=20fix=20smoke=20?= =?UTF-8?q?test,=20fix=20a11y?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Paperclip --- e2e/smoke.spec.ts | 8 ++++---- src/pages/Login.tsx | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/e2e/smoke.spec.ts b/e2e/smoke.spec.ts index 4af4078..6edb148 100644 --- a/e2e/smoke.spec.ts +++ b/e2e/smoke.spec.ts @@ -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(); }); diff --git a/src/pages/Login.tsx b/src/pages/Login.tsx index 214dcd4..47d46a8 100644 --- a/src/pages/Login.tsx +++ b/src/pages/Login.tsx @@ -46,7 +46,7 @@ export function Login() { } return ( -
+

CartSnitch

Track prices. Save money.

@@ -92,6 +92,6 @@ export function Login() { Sign up

-
+ ) }