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.

Find the selected calendar day by its updated accessible name

pulse-triage[bot]f51fca0c9220
diff --git a/tests/integration/tests/17-proxmox-backups-layout.spec.ts b/tests/integration/tests/17-proxmox-backups-layout.spec.ts
index 0bcb2e98af..3e99b42784 100644
--- a/tests/integration/tests/17-proxmox-backups-layout.spec.ts
+++ b/tests/integration/tests/17-proxmox-backups-layout.spec.ts
@@ -89,13 +89,17 @@ test.describe("Proxmox backups layout guards", () => {
.getByRole("button", { name: /: [1-9]\d* restore points?$/ })
.last();
await activeDay.click();
- await expect(activeDay).toHaveAttribute("aria-pressed", "true");
+ await expect(
+ page.getByRole("button", { name: /: [1-9]\d* restore points?, selected$/ }),
+ ).toHaveAttribute("aria-pressed", "true");
await expect(page).toHaveURL(/\/proxmox\/backups/);
await expect(
page.getByText(/^\d+ of \d+ backup entries$/).first(),
).toBeVisible();
- await page.getByRole("button", { name: "Clear date filter", exact: true }).click();
+ await page
+ .getByRole("button", { name: "Clear date filter", exact: true })
+ .click();
await expect(totalCopy).toHaveText(unfilteredCount);
});