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:
+4
-4
@@ -1,8 +1,8 @@
|
|||||||
import { test, expect } from './fixtures';
|
import { test, expect } from './fixtures';
|
||||||
|
|
||||||
test("app loads", async ({ page }) => {
|
test('app loads', async ({ page }) => {
|
||||||
await page.goto("/");
|
await page.goto('/');
|
||||||
await expect(page).toHaveTitle(/CartSnitch/);
|
// Unauthenticated users are redirected to /login
|
||||||
// Unauthenticated users are redirected to login
|
|
||||||
await expect(page).toHaveURL(/\/login/);
|
await expect(page).toHaveURL(/\/login/);
|
||||||
|
await expect(page.getByRole('heading', { name: /sign in|log in/i })).toBeVisible();
|
||||||
});
|
});
|
||||||
|
|||||||
+2
-2
@@ -46,7 +46,7 @@ export function Login() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
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>
|
<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>
|
<p className="mb-8 text-sm text-gray-500">Track prices. Save money.</p>
|
||||||
|
|
||||||
@@ -92,6 +92,6 @@ export function Login() {
|
|||||||
Sign up
|
Sign up
|
||||||
</Link>
|
</Link>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</main>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user