fix flaky E2E test: add networkidle wait before admin invoices assertions

Fixes GRO-557
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Flea Flicker
2026-04-11 15:31:29 +00:00
parent 24a032dd9d
commit fb892cadad
+1
View File
@@ -82,6 +82,7 @@ test("admin staff page loads", async ({ page }) => {
test("admin invoices page loads", async ({ page }) => {
await page.goto("/admin/invoices");
await page.waitForLoadState("networkidle");
await expect(page.getByText("GroomBook")).toBeVisible();
await expect(page.getByRole("link", { name: "Invoices" })).toBeVisible();
});