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:
@@ -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 } });
|
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.
|
// Appointments, clients, services, staff, book, etc.
|
||||||
return route.fulfill({ json: [] });
|
return route.fulfill({ json: [] });
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user