fix(e2e): resolve E2E test failures
- Update fixture mock user IDs to match test expectations (client-1, client-2) - Fix admin-reports strict mode violation: replace .or() with combined regex - Ensure services endpoint is mocked before navigation in beforeEach - Tests now expect UUIDs to be replaced with predictable IDs in mocks Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -73,8 +73,8 @@ test.describe("Admin Reports Data", () => {
|
||||
await page.waitForTimeout(2_000);
|
||||
|
||||
// Revenue card should show non-zero value (check dollar amount or Revenue heading)
|
||||
const revenueCard = page.locator("text=/\\$1,250/").first();
|
||||
await expect(revenueCard.or(page.locator("text=/Revenue/"))).toBeVisible();
|
||||
const revenueCard = page.locator("text=/\\$1,250|Revenue/i").first();
|
||||
await expect(revenueCard).toBeVisible();
|
||||
|
||||
// Appointments card should show non-zero
|
||||
const appointmentsCard = page.locator("text=/25/").first();
|
||||
|
||||
Reference in New Issue
Block a user