M20: stabilize production acceptance
This commit is contained in:
@@ -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