mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-07 04:12:04 +00:00
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:
1 parent
95ea178929
commit
bf7bb0925d
1 file changed
+9
@@ -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 },
|
||||
},
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user