fix: e2e route mocking and color contrast accessibility (#221)

Fixes CAR-673, CAR-676. Replaces VITE_MOCK_AUTH with Playwright route mocking for all e2e tests. Fixes color contrast (text-gray-400 → text-gray-600).
This commit is contained in:
cartsnitch-engineer[bot]
2026-04-15 21:49:55 +00:00
committed by GitHub
parent ba31df67df
commit 46724b1db9
5 changed files with 107 additions and 37 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
import { test, expect } from './fixtures';
import { test, expect, mockAuthRoutes } from './fixtures';
test('app loads', async ({ page }) => {
await mockAuthRoutes(page, false);
await page.goto('/');
// Unauthenticated users are redirected to /login
await expect(page).toHaveURL(/\/login/);
await expect(page.getByRole('heading', { name: /CartSnitch/i })).toBeVisible();
});