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

-
+ ) }