forked from cartsnitch/cartsnitch
09f88f0bf8
- Make mockAuthRoutes async and await all page.route() calls to prevent race conditions - Add auth route mocking to J8 unauth tests (required since VITE_MOCK_AUTH was removed) - Add auth route mocking to smoke test - Replace broken mockSessionPending with mockSessionDelayed for spinner test Co-Authored-By: Paperclip <noreply@paperclip.ing>
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();
|
|
});
|