diff --git a/frontend/e2e/operational-workflows.spec.ts b/frontend/e2e/operational-workflows.spec.ts index 62f70cd..294fe24 100644 --- a/frontend/e2e/operational-workflows.spec.ts +++ b/frontend/e2e/operational-workflows.spec.ts @@ -60,12 +60,17 @@ test("manager can assign data-quality work from the queue", async ({ page, reque await login(page); await page.goto("/data-quality?status=open"); const firstRow = page.locator(".data-table tbody tr").first(); + const issueRef = (await firstRow.locator(".row-link").textContent())?.trim() ?? ""; + expect(issueRef).not.toBe(""); await firstRow.getByRole("checkbox").check(); const assignee = page.getByLabel("Toewijzen aan"); await assignee.selectOption({ index: 1 }); const selectedLabel = await assignee.locator("option:checked").textContent(); await page.getByRole("button", { name: "Werkvoorraad bijwerken" }).click(); - await expect(firstRow).toContainText(selectedLabel ?? ""); + const updatedRow = page.locator(".data-table tbody tr").filter({ + has: page.getByRole("link", { name: issueRef, exact: true }), + }); + await expect(updatedRow).toContainText(selectedLabel ?? ""); }); test("manager can record maintenance and release a safe vehicle", async ({ page, request }) => {