diff --git a/e2e/work-orders/inline-technician.spec.ts b/e2e/work-orders/inline-technician.spec.ts index 41a7ffed..66b214fb 100644 --- a/e2e/work-orders/inline-technician.spec.ts +++ b/e2e/work-orders/inline-technician.spec.ts @@ -336,7 +336,7 @@ test.describe("Inline technician registration", () => { ), ) .toBe(true); - await expect(reloadedRow.getByRole("button", { name: /completed/i })).toBeVisible(); + await expect(reloadedRow.getByText("Completed", { exact: true })).toBeVisible(); await reloadedRow.getByRole("button", { name: /Coastal HVAC/ }).click(); const completedDialog = page.getByRole("dialog"); await expect(completedDialog.getByText("—", { exact: true })).toBeVisible(); @@ -435,7 +435,7 @@ test.describe("Inline technician registration", () => { await expect .poll(() => writes.filter((write) => write.pathname === "/api/workorders/1/board").length) .toBe(2); - await expect(reloadedRow.getByRole("button", { name: /completed/i })).toBeVisible(); + await expect(reloadedRow.getByText("Completed", { exact: true })).toBeVisible(); expect( writes.some( (write) =>