mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-06 19:22:06 +00:00
test(work-orders): assert completed status as display text
This commit is contained in:
parent
fdbb602e0c
commit
262c93b41c
1 changed files with 2 additions and 2 deletions
|
|
@ -336,7 +336,7 @@ test.describe("Inline technician registration", () => {
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.toBe(true);
|
.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();
|
await reloadedRow.getByRole("button", { name: /Coastal HVAC/ }).click();
|
||||||
const completedDialog = page.getByRole("dialog");
|
const completedDialog = page.getByRole("dialog");
|
||||||
await expect(completedDialog.getByText("—", { exact: true })).toBeVisible();
|
await expect(completedDialog.getByText("—", { exact: true })).toBeVisible();
|
||||||
|
|
@ -435,7 +435,7 @@ test.describe("Inline technician registration", () => {
|
||||||
await expect
|
await expect
|
||||||
.poll(() => writes.filter((write) => write.pathname === "/api/workorders/1/board").length)
|
.poll(() => writes.filter((write) => write.pathname === "/api/workorders/1/board").length)
|
||||||
.toBe(2);
|
.toBe(2);
|
||||||
await expect(reloadedRow.getByRole("button", { name: /completed/i })).toBeVisible();
|
await expect(reloadedRow.getByText("Completed", { exact: true })).toBeVisible();
|
||||||
expect(
|
expect(
|
||||||
writes.some(
|
writes.some(
|
||||||
(write) =>
|
(write) =>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue