M20: stabilize production acceptance
This commit is contained in:
@@ -53,10 +53,10 @@ test("full guided demo walkthrough, start to finish, restoring the environment a
|
||||
await test.step("step 4: handle the newly created data-quality issue", async () => {
|
||||
await expect(page).toHaveURL(/\/data-quality$/);
|
||||
await expect(page.getByRole("heading", { name: "4. Bekijk en behandel" })).toBeVisible();
|
||||
const firstIssueLink = page.locator(".data-table tbody tr").first().locator("a");
|
||||
await firstIssueLink.click();
|
||||
const odometerIssue = page.getByRole("row", { name: /Afwijkende kilometerstand/ });
|
||||
await odometerIssue.locator("a").click();
|
||||
await expect(page.getByText("Wat is er mis")).toBeVisible();
|
||||
// The newest issue is the odometer regression this return just created.
|
||||
// SLA ordering deliberately outranks recency, so select the issue by its rule.
|
||||
await page.getByRole("radio", { name: /Laatst bevestigde stand behouden/ }).check();
|
||||
await page.getByRole("button", { name: "Probleem oplossen" }).click();
|
||||
await expect(page.getByText(/Probleem .* opgelost/)).toBeVisible();
|
||||
|
||||
@@ -60,8 +60,10 @@ test("vehicles page: status filter and attention-only checkbox both work", async
|
||||
await expect(page).toHaveURL(/attention_only=true/);
|
||||
await expect(page.getByLabel("Attention only")).toBeChecked();
|
||||
await expect(page.locator(".data-table tbody tr").first()).toBeVisible();
|
||||
const attentionCells = await page.locator(".data-table tbody tr td:nth-child(6)").allTextContents();
|
||||
expect(attentionCells.every((c) => c.includes("Needs attention"))).toBeTruthy();
|
||||
const rows = page.locator(".data-table tbody tr");
|
||||
await expect(rows.locator(".attention-flag")).toHaveCount(await rows.count());
|
||||
const attentionReasons = await rows.locator(".attention-flag").allTextContents();
|
||||
expect(attentionReasons.every((reason) => reason.trim().length > 0)).toBeTruthy();
|
||||
});
|
||||
|
||||
test("vehicles page: free-text search actually filters the rendered rows", async ({ page }) => {
|
||||
|
||||
Reference in New Issue
Block a user