From 5ea81e120393a237aecfdbe0d931700c778c043a Mon Sep 17 00:00:00 2001 From: rcourtman Date: Thu, 19 Mar 2026 02:09:10 +0000 Subject: [PATCH] Align recovery route contract tests --- frontend-modern/src/routing/__tests__/resourceLinks.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend-modern/src/routing/__tests__/resourceLinks.test.ts b/frontend-modern/src/routing/__tests__/resourceLinks.test.ts index c706fa639..e245c5e69 100644 --- a/frontend-modern/src/routing/__tests__/resourceLinks.test.ts +++ b/frontend-modern/src/routing/__tests__/resourceLinks.test.ts @@ -138,6 +138,7 @@ describe('resource link routing contract', () => { it('builds and parses recovery query params', () => { const href = buildRecoveryPath({ provider: 'proxmox-pbs', + stale: '1', range: '7', cluster: 'cluster-main', day: '2026-02-13', @@ -207,7 +208,7 @@ describe('resource link routing contract', () => { it('canonicalizes stale-only recovery route flags to the owned query shape', () => { expect(buildRecoveryPath({ stale: 'true', provider: 'proxmox-pve' })).toBe( - '/recovery?provider=proxmox-pve&stale=true', + '/recovery?provider=proxmox-pve&stale=1', ); expect(parseRecoveryLinkSearch('?stale=%201%20')).toMatchObject({ stale: '1' }); });