Skip to content
10 changes: 10 additions & 0 deletions tests/facility/settings/devices/deviceServiceHistory.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ test.describe("Device Service History", () => {

await expect(page.getByText(notes)).toBeVisible();

// Wait for the "Add Service Record" sheet to fully close before editing,
// otherwise its Service Date picker and Notes field overlap with the edit
// sheet's, causing a strict-mode violation.
await expect(page.getByRole("button", { name: "Save" })).toBeHidden();

await page
.locator('[data-slot="card"]')
.filter({ hasText: notes })
Expand Down Expand Up @@ -176,6 +181,11 @@ test.describe("Device Service History", () => {

await expect(page.getByText(notes)).toBeVisible();

// Wait for the "Add Service Record" sheet to fully close before editing,
// otherwise its Service Date picker and Notes field overlap with the edit
// sheet's, causing a strict-mode violation.
await expect(page.getByRole("button", { name: "Save" })).toBeHidden();

await page
.locator('[data-slot="card"]')
.filter({ hasText: notes })
Expand Down
Loading