From c2bdf7de9103bdafafef3129904ee2dfbf6a8ed9 Mon Sep 17 00:00:00 2001 From: "pulse-triage[bot]" <249995291+pulse-triage[bot]@users.noreply.github.com> Date: Tue, 13 Oct 2026 07:26:15 +0100 Subject: [PATCH] Match exact read routes in stale-memory browser proof Keep guest-operation and mutation refusals, but match operation path segments rather than the run prefix of the read-only runtime-capabilities route. Bind the empty History fixture to the production metrics-store/history route. Preserve both prior browser failures and the original product assertions. Change-source: pulse-maintainer --- frontend-modern/browser-tests/guest-memory-agent-stale.cjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend-modern/browser-tests/guest-memory-agent-stale.cjs b/frontend-modern/browser-tests/guest-memory-agent-stale.cjs index 5dc58cf9c4..875788262e 100644 --- a/frontend-modern/browser-tests/guest-memory-agent-stale.cjs +++ b/frontend-modern/browser-tests/guest-memory-agent-stale.cjs @@ -78,9 +78,12 @@ const settle = (page) => if (!url.pathname.startsWith('/api/')) return route.continue(); record.requests.push({ path: url.pathname, method: request.method() }); assert.equal(request.method(), 'GET', 'no mutations'); - assert(!/diagnostics|\/run|guest-agent|qemu/.test(url.pathname), 'no guest operations'); + assert( + !/\/(?:diagnostics|run|run-command|guest-agent|qemu)(?:\/|$)/.test(url.pathname), + `no guest operations: ${url.pathname}`, + ); let body = { success: true, data: [], alerts: [], anomalies: [], config: null }; - if (url.pathname.includes('/charts/')) + if (url.pathname === '/api/metrics-store/history') body = { resourceType: 'vm', resourceId: url.searchParams.get('resourceId') || 'fixture:pve1:101',