M20: verify reordered work queue by identity
MobilityOps acceptance / backend (push) Canceled after 0s
MobilityOps acceptance / frontend (push) Canceled after 0s

This commit is contained in:
NuklearRabbit
2026-08-10 13:12:07 +02:00
parent 152d847a26
commit 5dda5742e4
+6 -1
View File
@@ -60,12 +60,17 @@ test("manager can assign data-quality work from the queue", async ({ page, reque
await login(page); await login(page);
await page.goto("/data-quality?status=open"); await page.goto("/data-quality?status=open");
const firstRow = page.locator(".data-table tbody tr").first(); 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(); await firstRow.getByRole("checkbox").check();
const assignee = page.getByLabel("Toewijzen aan"); const assignee = page.getByLabel("Toewijzen aan");
await assignee.selectOption({ index: 1 }); await assignee.selectOption({ index: 1 });
const selectedLabel = await assignee.locator("option:checked").textContent(); const selectedLabel = await assignee.locator("option:checked").textContent();
await page.getByRole("button", { name: "Werkvoorraad bijwerken" }).click(); 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 }) => { test("manager can record maintenance and release a safe vehicle", async ({ page, request }) => {