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:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user