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.

Align doc-link and telemetry-disclosure specs with shipped surfaces

rcourtmand61f57a1e264
diff --git a/tests/integration/tests/19-telemetry-disclosure.spec.ts b/tests/integration/tests/19-telemetry-disclosure.spec.ts
index cf970e90ae..ed1cef827f 100644
--- a/tests/integration/tests/19-telemetry-disclosure.spec.ts
+++ b/tests/integration/tests/19-telemetry-disclosure.spec.ts
@@ -69,12 +69,12 @@ test.describe('Telemetry disclosure', () => {
await page.waitForURL(/\/settings/, { timeout: 15_000 });
const telemetrySummary = page.getByText(
- /rotating install ID, normalized release identity, platform, resource counts, and feature flags/i,
+ /rotating pseudonymous install ID, normalized release identity, runtime platform/i,
);
await expect(telemetrySummary).toBeVisible();
await expect(telemetrySummary).toContainText('Telemetry rows are retained for up to 90 days');
await expect(telemetrySummary).toContainText(
- 'IP addresses are not stored in telemetry rows',
+ 'are not stored in telemetry rows',
);
const disclosureLink = page.getByRole('link', { name: 'Full details' }).first();
@@ -83,7 +83,7 @@ test.describe('Telemetry disclosure', () => {
page,
disclosureLink,
'/docs/PRIVACY.md',
- 'Pulse currently has two usage-data scopes',
+ 'Pulse has one outbound usage-data scope',
);
});
diff --git a/tests/integration/tests/20-local-doc-links.spec.ts b/tests/integration/tests/20-local-doc-links.spec.ts
index d6e057a696..59ac24d2b5 100644
--- a/tests/integration/tests/20-local-doc-links.spec.ts
+++ b/tests/integration/tests/20-local-doc-links.spec.ts
@@ -136,7 +136,27 @@ test.describe('Local docs links', () => {
test('ai runtime controls open the shipped terms doc', async ({ page }, testInfo) => {
test.skip(testInfo.project.name.startsWith('mobile-'), 'Desktop-only local docs coverage');
- await page.goto('/settings/system-ai', { waitUntil: 'domcontentloaded' });
+ // The autonomous chat-action option is gated on runtime autonomy, which
+ // the community e2e runtime blocks; unblock it at the capability layer so
+ // the terms disclosure it carries can be exercised.
+ await page.route('**/api/license/runtime-capabilities', async (route) => {
+ await route.fulfill({
+ status: 200,
+ contentType: 'application/json',
+ body: JSON.stringify({
+ capabilities: ['ai_patrol', 'ai_alerts', 'ai_autofix'],
+ limits: [],
+ hosted_mode: false,
+ max_history_days: 7,
+ runtime: { build: 'pro', label: 'Pulse Pro runtime' },
+ blocked_capabilities: [],
+ }),
+ });
+ });
+
+ // Chat action controls live on the Assistant panel; /settings/system-ai
+ // canonicalizes to the Provider & Models panel.
+ await page.goto('/settings/pulse-intelligence/assistant', { waitUntil: 'domcontentloaded' });
await page.waitForURL(/\/settings/, { timeout: 15_000 });
const permissionSelect = page
@@ -158,9 +178,13 @@ test.describe('Local docs links', () => {
test('self-hosted commercial activation opens the shipped terms doc', async ({ page }, testInfo) => {
test.skip(testInfo.project.name.startsWith('mobile-'), 'Desktop-only local docs coverage');
- await page.goto('/settings/system-pro', { waitUntil: 'domcontentloaded' });
+ await page.goto('/settings/pulse-intelligence/billing/plan', { waitUntil: 'domcontentloaded' });
await page.waitForURL(/\/settings/, { timeout: 15_000 });
+ // The terms disclosure sits inside the collapsed manual key recovery
+ // section unless the panel is already in a recovery posture.
+ 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 expectPopupDoc(