From a8ce107f1feeb0e151dc4df9861597082d57d72b Mon Sep 17 00:00:00 2001 From: Vito Sansevero Date: Sun, 25 Oct 2026 07:21:22 -0700 Subject: [PATCH] test(images): the scan dialog's Back up now leaves a finished backup hold A backup download now holds a guarded registry slot while it streams (#249 S8), so the jobs list holds that finished hold after the dialog's Back up now; the spec still proves Cancel starts no scan. --- tests/browser/workspace-images.spec.mjs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/browser/workspace-images.spec.mjs b/tests/browser/workspace-images.spec.mjs index 7a01102f..292d8891 100644 --- a/tests/browser/workspace-images.spec.mjs +++ b/tests/browser/workspace-images.spec.mjs @@ -2184,6 +2184,8 @@ test('scan for metadata opens the review dialog from Import', async ({ page, req await dialog.getByRole('button', { name: 'Cancel', exact: true }).click(); await expect(scanReview(page)).toHaveCount(0); await expect(page.getByRole('button', { name: 'Import', exact: true })).toBeFocused(); - const jobs = await (await request.get('/prompt_manager/jobs')).json(); - expect(jobs.jobs).toEqual([]); + // No scan started: the one job is the backup's finished registry hold + // (#249 S8: a backup download holds a guarded slot while it streams). + await expect.poll(async () => (await (await request.get('/prompt_manager/jobs')).json()).jobs + .map(job => [job.kind, job.state])).toEqual([['backup', 'finished']]); });