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 dfabac1ff1 - Show all commits
+10
View File
@@ -44,6 +44,16 @@ test.beforeEach(async ({ page }) => {
json: { newClients: [], activeInPeriodCount: 0, churnRisk: [], churnRiskTotal: 0 },
});
}
if (url.includes("/api/invoices/stats/summary")) {
return route.fulfill({
json: {
revenueThisMonth: 0,
outstanding: 0,
refundsThisMonth: 0,
methodBreakdown: [],
},
});
}
if (url.includes("/api/invoices")) {
return route.fulfill({ json: { data: [], total: 0 } });
}