forked from cartsnitch/cartsnitch
fix e2e: update auth route mocks and config for Better Auth
This commit is contained in:
+2
-1
@@ -1,6 +1,7 @@
|
||||
import { test, expect } from './fixtures';
|
||||
import { test, expect, mockAuthRoutes } from './fixtures';
|
||||
|
||||
test('app loads', async ({ page }) => {
|
||||
mockAuthRoutes(page, false);
|
||||
await page.goto('/');
|
||||
// Unauthenticated users are redirected to /login
|
||||
await expect(page).toHaveURL(/\/login/);
|
||||
|
||||
Reference in New Issue
Block a user