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.

Stabilize remaining shard 3 E2E contracts

rcourtman7977f3661aad
diff --git a/tests/integration/tests/04-mobile.spec.ts b/tests/integration/tests/04-mobile.spec.ts
index 299ca055c9..6893f62ecd 100644
--- a/tests/integration/tests/04-mobile.spec.ts
+++ b/tests/integration/tests/04-mobile.spec.ts
@@ -195,7 +195,7 @@ test.describe("Mobile viewport flows", () => {
const table = page.locator("table.workload-table--mobile");
await expect(table).toBeVisible({ timeout: 30_000 });
- await expect(table).toHaveClass(/min-w-\[36rem\]/);
+ await expect(table).toHaveClass(/min-w-\[0px\]/);
await expect(table.locator("xpath=..")).toHaveClass(/overflow-x-auto/);
});
@@ -235,7 +235,13 @@ test.describe("Mobile viewport flows", () => {
for (const tabId of ["alerts", "ai", "settings"]) {
const button = utilityRail.locator(`button[data-tab-id="${tabId}"]`);
await expect(button).toBeVisible();
- const box = await button.boundingBox();
+ let box = await button.boundingBox();
+ await expect
+ .poll(async () => {
+ box = await button.boundingBox();
+ return box;
+ })
+ .not.toBeNull();
expect(
box,
`${tabId} utility destination should have a layout box`,
diff --git a/tests/integration/tests/91-proxmox-node-display-names.spec.ts b/tests/integration/tests/91-proxmox-node-display-names.spec.ts
index bd359eb522..1180934ef4 100644
--- a/tests/integration/tests/91-proxmox-node-display-names.spec.ts
+++ b/tests/integration/tests/91-proxmox-node-display-names.spec.ts
@@ -210,7 +210,18 @@ test.describe('Proxmox cluster node display names', () => {
// Equal display labels are intentionally valid presentation. The write
// target remains the second member's immutable identity.
await page.getByLabel('Display name for pve2').fill('Render East');
+ const displayNameUpdate = page.waitForRequest((request) => {
+ if (
+ request.method() !== 'PUT' ||
+ new URL(request.url()).pathname !== '/api/config/nodes/pve-0'
+ ) {
+ return false;
+ }
+ const payload = request.postDataJSON() as Record<string, unknown> | null;
+ return Array.isArray(payload?.clusterNodeDisplayNameOverrides);
+ });
await page.getByRole('button', { name: 'Save changes', exact: true }).click();
+ await displayNameUpdate;
await expect.poll(() => updatePayload).toBeDefined();
expect(updatePayload?.clusterNodeDisplayNameOverrides).toEqual([