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.

Repair remaining probation E2E contracts

rcourtmanf39afe3ea7ce
diff --git a/tests/integration/tests/20-local-doc-links.spec.ts b/tests/integration/tests/20-local-doc-links.spec.ts
index 59ac24d2b5..59d68275af 100644
--- a/tests/integration/tests/20-local-doc-links.spec.ts
+++ b/tests/integration/tests/20-local-doc-links.spec.ts
@@ -81,8 +81,8 @@ test.describe('Local docs links', () => {
await page.waitForURL(/\/settings/, { timeout: 15_000 });
const guideLink = page.getByRole('link', { name: /Read proxy auth guide/i });
- await expect(guideLink).toHaveAttribute('href', '/docs/PROXY_AUTH.md');
- await expectPopupDoc(page, guideLink, '/docs/PROXY_AUTH.md', 'Proxy Authentication');
+ await expect(guideLink).toHaveAttribute('href', '/docs/PROXY_AUTH');
+ await expectPopupDoc(page, guideLink, '/docs/PROXY_AUTH', 'Proxy Authentication');
});
test('api access opens the shipped token scope reference', async ({ page }, testInfo) => {
@@ -92,11 +92,11 @@ test.describe('Local docs links', () => {
await page.waitForURL(/\/settings/, { timeout: 15_000 });
const scopeReferenceLink = page.getByRole('link', { name: 'View scope reference' });
- await expect(scopeReferenceLink).toHaveAttribute('href', '/docs/CONFIGURATION.md');
+ await expect(scopeReferenceLink).toHaveAttribute('href', '/docs/CONFIGURATION');
await expectPopupDoc(
page,
scopeReferenceLink,
- '/docs/CONFIGURATION.md',
+ '/docs/CONFIGURATION',
'API tokens provide scoped, revocable access to Pulse.',
);
});
@@ -129,8 +129,8 @@ test.describe('Local docs links', () => {
await page.goto('/infrastructure', { waitUntil: 'domcontentloaded' });
const securityGuideLink = page.getByRole('link', { name: 'Learn More' }).first();
- await expect(securityGuideLink).toHaveAttribute('href', '/docs/SECURITY.md');
- await expectPopupDoc(page, securityGuideLink, '/docs/SECURITY.md', 'Pulse Security');
+ await expect(securityGuideLink).toHaveAttribute('href', '/docs/SECURITY');
+ await expectPopupDoc(page, securityGuideLink, '/docs/SECURITY', 'Pulse Security');
});
test('ai runtime controls open the shipped terms doc', async ({ page }, testInfo) => {
@@ -166,11 +166,11 @@ test.describe('Local docs links', () => {
await permissionSelect.selectOption('autonomous');
const termsLink = page.getByRole('link', { name: 'Terms of Service' }).first();
- await expect(termsLink).toHaveAttribute('href', '/docs/TERMS.md');
+ await expect(termsLink).toHaveAttribute('href', '/docs/TERMS');
await expectPopupDoc(
page,
termsLink,
- '/docs/TERMS.md',
+ '/docs/TERMS',
'Pulse Pro - Terms of Service & Software License Agreement',
);
});
@@ -186,11 +186,11 @@ test.describe('Local docs links', () => {
await page.getByText('Manual key recovery', { exact: true }).click();
const termsLink = page.getByRole('link', { name: /terms of service/i }).first();
- await expect(termsLink).toHaveAttribute('href', '/docs/TERMS.md');
+ await expect(termsLink).toHaveAttribute('href', '/docs/TERMS');
await expectPopupDoc(
page,
termsLink,
- '/docs/TERMS.md',
+ '/docs/TERMS',
'Pulse Pro - Terms of Service & Software License Agreement',
);
});
diff --git a/tests/integration/tests/21-truenas-connections-workspace.spec.ts b/tests/integration/tests/21-truenas-connections-workspace.spec.ts
index 9e3defb3a2..3690178383 100644
--- a/tests/integration/tests/21-truenas-connections-workspace.spec.ts
+++ b/tests/integration/tests/21-truenas-connections-workspace.spec.ts
@@ -264,7 +264,9 @@ test.describe("TrueNAS connections in the consolidated workspace", () => {
await dialog.getByRole("textbox", { name: "Name", exact: true }).fill("Tower NAS");
await dialog.getByRole("textbox", { name: "Host" }).fill("tower.local");
- await dialog.getByRole("textbox", { name: "API key" }).fill("secret-api-key");
+ await dialog
+ .getByRole("textbox", { name: "API key", exact: true })
+ .fill("secret-api-key");
await dialog.getByRole("button", { name: "Test connection" }).click();
await expect.poll(() => draftTestPayload).not.toBeNull();
@@ -345,7 +347,9 @@ test.describe("TrueNAS connections in the consolidated workspace", () => {
await dialog.getByRole("textbox", { name: "Name", exact: true }).fill("Tower NAS");
await dialog.getByRole("textbox", { name: "Host" }).fill("tower.local");
- await dialog.getByRole("textbox", { name: "API key" }).fill("secret-api-key");
+ await dialog
+ .getByRole("textbox", { name: "API key", exact: true })
+ .fill("secret-api-key");
await dialog.getByRole("button", { name: "Add connection" }).click();
diff --git a/tests/integration/tests/64-workloads-proxmox-refresh-stability.spec.ts b/tests/integration/tests/64-workloads-proxmox-refresh-stability.spec.ts
index 35d4e40af6..ddab0cad2b 100644
--- a/tests/integration/tests/64-workloads-proxmox-refresh-stability.spec.ts
+++ b/tests/integration/tests/64-workloads-proxmox-refresh-stability.spec.ts
@@ -239,7 +239,7 @@ test.describe.serial("Workloads Proxmox refresh stability", () => {
);
});
- test("retains running LXC rows through stale availability projections and removes a confirmed deletion", async ({
+ test("retains LXC rows through warning health projections and removes a confirmed deletion", async ({
page,
}, testInfo) => {
test.skip(
@@ -253,6 +253,11 @@ test.describe.serial("Workloads Proxmox refresh stability", () => {
let staleProjectionResponses = 0;
let deletionResponses = 0;
let publishDeletion = false;
+
+ // The REST sequence is the contract under test. Prevent live inventory
+ // frames from replacing it while polling is exercised.
+ await page.routeWebSocket("**/ws*", () => {});
+
await page.route("**/api/resources?**", async (route) => {
const url = new URL(route.request().url());
if (
@@ -297,7 +302,7 @@ test.describe.serial("Workloads Proxmox refresh stability", () => {
});
await page.goto(
- "/proxmox/workloads?type=system-container&platform=proxmox-pve&status=running",
+ "/proxmox/workloads?type=system-container&platform=proxmox-pve",
{ waitUntil: "domcontentloaded" },
);