From 206c352bef097a2907fb32611779a5ab189485a1 Mon Sep 17 00:00:00 2001 From: rcourtman <8825017+rcourtman@users.noreply.github.com> Date: Mon, 5 Oct 2026 06:58:37 +0100 Subject: [PATCH] Pick the sdc disk row by kind in the TrueNAS history spec The spec took the first table row containing "sdc". The archive pool's Health cell now carries the copied SMART alert for /dev/sdc, so that row matched first and the spec opened the pool drawer instead of the disk's, then timed out waiting for the sdc drawer. Select the disk row by its storage kind, which is what the test means. --- .../tests/27-truenas-storage-disk-history.spec.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/integration/tests/27-truenas-storage-disk-history.spec.ts b/tests/integration/tests/27-truenas-storage-disk-history.spec.ts index e567469bf9..7b388fe871 100644 --- a/tests/integration/tests/27-truenas-storage-disk-history.spec.ts +++ b/tests/integration/tests/27-truenas-storage-disk-history.spec.ts @@ -119,7 +119,12 @@ test.describe("TrueNAS storage disk history", () => { await expect(search).toBeVisible({ timeout: 60_000 }); await search.fill("sdc"); - const diskRow = page.locator("tr").filter({ hasText: "sdc" }).first(); + // The archive pool row also mentions /dev/sdc, because its Health cell + // carries the copied SMART alert, so pick the disk row by its kind. + const diskRow = page + .locator('tr[data-truenas-storage-kind="disk"]') + .filter({ hasText: "sdc" }) + .first(); await expect(diskRow).toBeVisible(); await diskRow.getByRole("button").first().click();