From 3dd45c0efd3e0f8f89b83aab28a5ea2bf6491c7b Mon Sep 17 00:00:00 2001 From: Vito Sansevero Date: Mon, 26 Oct 2026 10:44:02 -0700 Subject: [PATCH] test(browser): accept KB or MB for the picked safety backup's size The restore preview showed '2.5 MB' for the test server's database copy in a CI coverage shard: its size depends on what earlier tests on that server wrote, and the formatter switches to MB at 1 MiB. --- tests/browser/workspace-system-backups.spec.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/browser/workspace-system-backups.spec.mjs b/tests/browser/workspace-system-backups.spec.mjs index fb4bdaeb..6856490f 100644 --- a/tests/browser/workspace-system-backups.spec.mjs +++ b/tests/browser/workspace-system-backups.spec.mjs @@ -485,5 +485,6 @@ test('a safety backup file (no .db extension) can be picked and reviewed (M3)', const answer = await chooseBackup(page, bytes, 'prompts.db.backup_20261025_093000_000000'); expect((await answer).status()).toBe(200); await expect(dialog(page).locator('#modal-title')).toHaveText('Restore preview'); - expect((await gridOf(page))[0][1]).toMatch(/^prompts\.db\.backup_20261025_093000_000000 · \d+ KB · .+$/); + // The copy's size depends on what earlier tests on this server wrote: KB or MB. + expect((await gridOf(page))[0][1]).toMatch(/^prompts\.db\.backup_20261025_093000_000000 · [\d,.]+ (KB|MB) · .+$/); });