Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

test(proxmox): scope backups table guard

pulse-triage[bot]d4deb26a2736
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")