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.

test(web): extend phone reflow qualification to 320px

pulse-triage[bot]8be4e41e8c1b
diff --git a/tests/integration/tests/96-navigation-socket-recovery.spec.ts b/tests/integration/tests/96-navigation-socket-recovery.spec.ts
index 2961947194..71eefa0393 100644
--- a/tests/integration/tests/96-navigation-socket-recovery.spec.ts
+++ b/tests/integration/tests/96-navigation-socket-recovery.spec.ts
@@ -51,11 +51,11 @@ async function mobileDestinations(page: Page) {
}
for (const admissionFailure of [false, true]) {
- for (const width of [1440, 1100, 390]) {
+ for (const width of [1440, 1100, 390, 320]) {
test(`populated navigation survives socket loss at ${width}px (admission failure: ${admissionFailure})`, async ({ page, browser }, testInfo) => {
test.skip(!enabled, 'Requires isolated mock backend and explicit qualification opt-in');
test.setTimeout(120_000);
- await page.setViewportSize({ width, height: width === 390 ? 844 : 900 });
+ await page.setViewportSize({ width, height: width <= 390 ? 844 : 900 });
let blocked = false;
let failAdmission = false;
let failedAdmissions = 0;
@@ -94,7 +94,7 @@ for (const admissionFailure of [false, true]) {
const capture = async (stage: string) => {
await testInfo.attach(stage, { body: await page.screenshot({ path: testInfo.outputPath(`${stage}.png`) }), contentType: 'image/png' });
};
- if (width === 390) await mobileDestinations(page);
+ if (width <= 390) await mobileDestinations(page);
await capture('healthy');
const documentIdentity = await page.evaluate(() => performance.timeOrigin);
blocked = true;
@@ -110,7 +110,7 @@ for (const admissionFailure of [false, true]) {
await expect(page.getByRole('button', { name: 'Acknowledge', exact: true }).first()).toBeEnabled();
await capture('active-incidents-during-reconnect');
}
- if (width === 390) await mobileDestinations(page);
+ if (width <= 390) await mobileDestinations(page);
const admissionResponse = admissionFailure
? page.waitForResponse(response => response.url().includes('/api/resources?page=1&limit=1') && response.status() === 503)
: null;
@@ -119,10 +119,10 @@ for (const admissionFailure of [false, true]) {
await expect(page.getByRole('status', { name: healthy })).toBeVisible({ timeout: 45_000 });
if (admissionFailure) await expect.poll(() => failedAdmissions).toBeGreaterThan(0);
expect.soft(await navigation(page)).toEqual(before);
- if (width === 390) await mobileDestinations(page);
+ if (width <= 390) await mobileDestinations(page);
expect(await page.evaluate(() => performance.timeOrigin)).toBe(documentIdentity);
await capture('recovered');
- if (width === 390 && !admissionFailure && process.env.PULSE_E2E_TABLE_ACCESS === '1') {
+ if (width <= 390 && !admissionFailure && process.env.PULSE_E2E_TABLE_ACCESS === '1') {
const row = page.locator('tr[data-docker-container-row]').filter({ hasText: 'notification' }).first();
const table = row.locator('xpath=ancestor::table');
const wrapper = table.locator('..');
@@ -158,12 +158,16 @@ for (const admissionFailure of [false, true]) {
}),
);
expect(clippedUpdateText).toEqual([]);
- const currentLabel = table.locator('.docker-container-update-cell span').filter({ hasText: /^Current$/ }).last();
- expect(await currentLabel.evaluate(el => {
- const range = document.createRange();
- range.selectNodeContents(el);
- return range.getClientRects().length;
- })).toBe(1);
+ // At 320px labels may wrap; reflow requires no lost text, not a
+ // single line. Preserve the stronger 390px presentation regression.
+ if (width === 390) {
+ const currentLabel = table.locator('.docker-container-update-cell span').filter({ hasText: /^Current$/ }).last();
+ expect(await currentLabel.evaluate(el => {
+ const range = document.createRange();
+ range.selectNodeContents(el);
+ return range.getClientRects().length;
+ })).toBe(1);
+ }
expect(initial.overflowX).toBe('clip');
expect(initial.scrollWidth).toBe(initial.width);
@@ -200,7 +204,7 @@ for (const admissionFailure of [false, true]) {
});
}
- await testInfo.attach('environment', { body: JSON.stringify({ browser: browser.version(), width, height: width === 390 ? 844 : 900, zoom: 1, admissionFailure, failedAdmissions, before }), contentType: 'application/json' });
+ await testInfo.attach('environment', { body: JSON.stringify({ browser: browser.version(), width, height: width <= 390 ? 844 : 900, zoom: 1, admissionFailure, failedAdmissions, before }), contentType: 'application/json' });
});
}
}
diff --git a/tests/qualification/navigation-reconnect/2026-09-05-320px/README.md b/tests/qualification/navigation-reconnect/2026-09-05-320px/README.md
new file mode 100644
index 0000000000..fbf3c4ff31
--- /dev/null
+++ b/tests/qualification/navigation-reconnect/2026-09-05-320px/README.md
@@ -0,0 +1,53 @@
+# 320px Docker and navigation qualification — 5 September 2026
+
+Base: `6cd22b2e039db08f2c3e2ce715912db1f31ecd48` (main-derived).
+Test/evidence change only; no application behaviour or demand ledger change.
+
+## Judgment
+
+The supplied checkout already includes the 390px phone-label correction
+`537c7ae9a5`; the older shared assessment's clipped-label conclusion is stale.
+Fresh W3C reflow guidance includes 320 CSS pixels and distinguishes data-table
+exceptions from individual cell content:
+https://www.w3.org/WAI/WCAG22/Understanding/reflow.html
+
+A bounded fresh community search also found independent preference for Pulse's
+monitoring simplicity, not evidence demanding another mobile web surface:
+https://www.reddit.com/r/Proxmox/comments/1lblkk8/anyone_else_switch_to_pulse_from_netdata_or_any/
+That older self-report is not current adoption or release acceptance evidence.
+The useful action here is qualification, not new product scope.
+
+## Actual evidence
+
+- Locked frontend and integration dependencies installed after an initial
+ browser attempt failed before tests because frontend dependencies were absent.
+- Focused Vitest: App.architecture and DockerNativeTables, 64 tests passed.
+- Source-built local backend and Chromium, 320x844, synthetic inventory:
+ failed-admission reconnect case passed; normal-admission case reached the
+ label checks and failed the inherited single-line Current assertion (two
+ lines). The preceding all-rendered-update-cell horizontal text-range bounds
+ check passed. This is not an eight-case pass.
+- Viewed `wrapped-labels.png`: Current and Update wrap within their cells;
+ small status/metric/identity columns remain truncated. No blanket layout or
+ accessibility pass. This screenshot contains synthetic inventory only.
+- Managed backend reported stopped after this run.
+- Adjusted the test to retain the single-line assertion at 390px only; at 320px
+ wrapping is permitted but the text-bound checks remain. Extended mobile
+ navigation interactions and heading checks to 320px. This final test revision
+ has NOT completed a browser run: the eight-case rerun remained queued behind
+ other heavy work for over 13 minutes and was cancelled before starting.
+- `git diff --check` passed. No full repository suite, installed artifact,
+ physical Android, screen reader, 400% browser zoom, or asynchronous update
+ state qualification. Heading proof at 320px remains pending because the
+ initial run stopped before that assertion.
+
+## Reproduce next
+
+```sh
+pulse-heavy-run -- env PULSE_E2E_USE_LOCAL_BACKEND=1 PULSE_E2E_SKIP_PLAYWRIGHT_INSTALL=1 PULSE_MOCK_MODE=true PULSE_E2E_NAVIGATION_RECOVERY=1 PULSE_E2E_TABLE_ACCESS=1 PULSE_E2E_LOCAL_BACKEND_PORT=18765 npm --prefix tests/integration test -- tests/96-navigation-socket-recovery.spec.ts --project=chromium
+```
+
+Expect eight selected cases (normal/failed admission at 320, 390, 1100, 1440).
+Do not replace browser-verification.json with a pass until actually completed.
+Awkward 320px word wrapping remains a presentation limitation, not newly fixed
+behaviour. Check current ledger scope before any product layout follow-up.
diff --git a/tests/qualification/navigation-reconnect/2026-09-05-320px/wrapped-labels.png b/tests/qualification/navigation-reconnect/2026-09-05-320px/wrapped-labels.png
new file mode 100644
index 0000000000..f780b21bfd
Binary files /dev/null and b/tests/qualification/navigation-reconnect/2026-09-05-320px/wrapped-labels.png differ