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.

Stabilise Proxmox backups E2E readiness

rcourtman83ac6a1bea7b
diff --git a/tests/integration/tests/17-proxmox-backups-layout.spec.ts b/tests/integration/tests/17-proxmox-backups-layout.spec.ts
index 558dae697c..9cc69ad1db 100644
--- a/tests/integration/tests/17-proxmox-backups-layout.spec.ts
+++ b/tests/integration/tests/17-proxmox-backups-layout.spec.ts
@@ -17,6 +17,15 @@ async function openProxmoxBackups(page: Page) {
await expect(sections).toBeVisible({ timeout: 60_000 });
await sections.getByRole("link", { name: "Backups", exact: true }).click();
await expect(page).toHaveURL(/\/proxmox\/backups\/date$/);
+ // The route commits before the Proxmox snapshot finishes loading. CI can
+ // take longer than the default locator timeout while all E2E shards share
+ // the runner, so wait for the destination surface rather than the URL alone.
+ await expect(page.getByText("Backups per day").first()).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
@@ -38,7 +47,6 @@ test.describe("Proxmox backups layout guards", () => {
await openProxmoxBackups(page);
// The Backups section now opens the date view directly.
- await expect(page.getByText("Backups per day").first()).toBeVisible();
const dayButtons = page.getByRole("button", { name: /: \d+ backups?$/ });
await expect.poll(() => dayButtons.count()).toBeGreaterThanOrEqual(7);