M20: verify reordered work queue by identity
This commit is contained in:
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user