forked from cartsnitch/app
46724b1db9
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).
9 lines
290 B
TypeScript
9 lines
290 B
TypeScript
import { test, expect, mockAuthRoutes } from './fixtures';
|
|
|
|
test('app loads', async ({ page }) => {
|
|
await mockAuthRoutes(page, false);
|
|
await page.goto('/');
|
|
await expect(page).toHaveURL(/\/login/);
|
|
await expect(page.getByRole('heading', { name: /CartSnitch/i })).toBeVisible();
|
|
});
|