fix(e2e): resolve remaining 2 E2E test failures
- console-health: add 502/Failed to load resource filter to admin page test (portal page already had it) - admin-services: mock /api/book/services endpoint used by booking wizard Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -15,9 +15,13 @@ const MOCK_SERVICES = [
|
||||
test.describe("Services Deduplication", () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
// Mock services endpoint FIRST before navigation
|
||||
// Also mock /api/book/services used by the booking wizard
|
||||
await page.route("**/api/services**", (route) =>
|
||||
route.fulfill({ json: MOCK_SERVICES })
|
||||
);
|
||||
await page.route("**/api/book/services**", (route) =>
|
||||
route.fulfill({ json: MOCK_SERVICES })
|
||||
);
|
||||
|
||||
// Login as staff
|
||||
await page.goto("/login");
|
||||
|
||||
Reference in New Issue
Block a user