fix(E2E): add missing API mocks for invoices stats and portal billing #349

Merged
groombook-engineer[bot] merged 30 commits from fix/gro-693-e2e-fixes into dev 2026-05-04 15:05:40 +00:00
Showing only changes of commit 7df553e446 - Show all commits
+1 -6
View File
@@ -54,14 +54,9 @@ test.beforeEach(async ({ page }) => {
},
});
}
if (url.includes("/api/invoices")) {
if (url.includes("/api/invoices")) {
return route.fulfill({ json: { data: [], total: 0 } });
}
if (url.includes("/api/invoices/stats/summary")) {
return route.fulfill({
json: { revenueThisMonth: 0, outstanding: 0, refundsThisMonth: 0, methodBreakdown: [] },
});
}
// Appointments, clients, services, staff, book, etc.
return route.fulfill({ json: [] });
});