test(web): wait for settled background job

This commit is contained in:
imccyu committed 2026-08-31 22:30:51 +08:00
1 parent 49bf26a794
commit ddecdf6b33
1 file changed
+1 -1
+1 -1
View File
@@ -111,7 +111,7 @@ describe.skipIf(MODE === 'record')('web e2e: background job list', () => {
onTestFailed(() => saveFailureShot(page, 'web-e2e-background-job-settled'))
expect(scaffold.ctx.jobs.kill(jobId, agent, 'web e2e cancellation')).toBe('requested')
const idle = page.getByRole('button', { name: '1 background job' })
const idle = page.getByRole('button', { name: '1 background job', exact: true })
await idle.waitFor({ timeout: 20_000 })
const snapshot = await captureStableAria(page, '[class*="menu"]', scaffold.workspaceCwd)