Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion e2e/tests/company/invoices/complete-flow.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ test.describe("Invoice submission, approval and rejection", () => {
await expect(rejectedInvoiceRow.getByRole("cell", { name: "Rejected" })).toBeVisible();

await rejectedInvoiceRow.click({ button: "right" });
await page.getByRole("menuitem", { name: "Edit" }).click();
const editMenuItem = page.getByRole("menuitem", { name: "Edit" });
await editMenuItem.waitFor({ state: "visible" });
await editMenuItem.click();
await expect(page.getByRole("heading", { name: "Edit invoice" })).toBeVisible();
await fillByLabel(page, "Hours / Qty", "02:30", { index: 0 });
await page.getByPlaceholder("Enter notes about your").fill("fixed hours");
Expand Down
Loading