fix(E2E): remove duplicate invoices/stats/summary block after general /api/invoices check

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
2026-05-04 01:57:38 +00:00
committed by Flea Flicker [agent]
parent cf6089935e
commit 7df553e446
+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: [] });
});