test(a11y): give the mocked backups list its off-host deletion and lifecycle fields

The off-host card reads pendingDeletions and lifecycle, which the route
always sends. The mock predated them, so the card threw and the page never
painted its rows. The mock now carries a refused deletion and a bucket
without an expiry rule, so the scan reaches both new lines.
This commit is contained in:
Marc-André Bombeck committed 2026-09-27 03:00:37 +02:00
1 parent 95ea178929
commit bf7bb0925d
1 file changed
+9
+9
View File
@@ -755,6 +755,15 @@ async function installA11yMocks(page: Page) {
freshness: "unknown",
},
],
// A deletion the bucket refused, and a bucket with no expiry rule:
// both lines paint only in these states, and both are what an
// operator has to read and act on.
pendingDeletions: {
count: 2,
oldestRequestedAt: "2026-07-18T03:00:00.000Z",
lastFailure: "AccessDenied",
},
lifecycle: { state: "missing", expirationDays: null },
},
}),
);