From d4deb26a27369670ba43be49cff6d1ae0b100f9e Mon Sep 17 00:00:00 2001 From: "pulse-triage[bot]" <249995291+pulse-triage[bot]@users.noreply.github.com> Date: Thu, 27 Aug 2026 15:34:40 +0100 Subject: [PATCH] test(proxmox): scope backups table guard --- .../tests/17-proxmox-backups-layout.spec.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/integration/tests/17-proxmox-backups-layout.spec.ts b/tests/integration/tests/17-proxmox-backups-layout.spec.ts index eb3300ffa0..bb801337e1 100644 --- a/tests/integration/tests/17-proxmox-backups-layout.spec.ts +++ b/tests/integration/tests/17-proxmox-backups-layout.spec.ts @@ -23,9 +23,9 @@ async function openProxmoxBackups(page: Page) { await expect(page.getByText("Backups per day").first()).toBeVisible({ timeout: 120_000, }); - await expect( - page.getByRole("group", { name: "Activity range" }), - ).toBeVisible({ timeout: 60_000 }); + await expect(page.getByRole("group", { name: "Activity range" })).toBeVisible( + { timeout: 60_000 }, + ); } // Layout guards for the Proxmox Backups section, which replaced the retired @@ -94,10 +94,12 @@ test.describe("Proxmox backups layout guards", () => { // The PBS servers table keeps its trailing column inside its wrapper on // the default desktop column set. + // Overview remains mounted for fast tab restoration and now owns the same + // shared PBS table. Scope to the active Backups composition so its hidden + // Overview sibling cannot satisfy this layout guard first. const serversTable = page - .locator("div.overflow-x-auto") - .filter({ has: page.locator('th:has-text("Backup server")') }) - .first(); + .locator('[data-proxmox-backups-table="servers"]:visible') + .locator("div.overflow-x-auto"); await expect(serversTable).toBeVisible(); const dedupHeader = serversTable .locator("th")