diff --git a/apps/web/tests/present-after-closing-reply.e2e.ts b/apps/web/tests/present-after-closing-reply.e2e.ts index 1c4144604e..6620027afd 100644 --- a/apps/web/tests/present-after-closing-reply.e2e.ts +++ b/apps/web/tests/present-after-closing-reply.e2e.ts @@ -45,8 +45,9 @@ describe('web e2e: delivery after the closing reply', () => { expect(await card.count()).toBe(1) expect(await card.innerText()).toContain('report.txt') expect(await card.innerText()).toContain('Draft report') - const tail = await captureStableAria(page, '[data-turn-tail]', scaffold.workspaceCwd) - await compareOrRefreshGolden(join(SNAPSHOT_DIR, 'ui.expected.md'), tail, MODE) + // The grid excludes the Host-desktop notice, which depends on the test platform. + const cards = await captureStableAria(page, '[data-turn-tail] [data-presented-files-row]', scaffold.workspaceCwd) + await compareOrRefreshGolden(join(SNAPSHOT_DIR, 'ui.expected.md'), cards, MODE) await card.getByRole('button', { name: `Preview ${join(scaffold.workspaceCwd, 'report.txt')} in sidebar`, exact: true }).click() await page.locator('[data-rightbar-col] [data-document-preview]').getByText('DRAFT_REPORT', { exact: true }).waitFor() expect(tripwire.pageErrors).toEqual([]) diff --git a/snapshots/web/present-after-closing-reply/ui.expected.md b/snapshots/web/present-after-closing-reply/ui.expected.md index 0736fa7c61..02ade38808 100644 --- a/snapshots/web/present-after-closing-reply/ui.expected.md +++ b/snapshots/web/present-after-closing-reply/ui.expected.md @@ -1,7 +1,2 @@ - button "Preview {{cwd}}/report.txt in sidebar" - text: report.txt Draft report -- button "Copy" -- button "Good response" -- button "Bad response" -- button "Branch into a new conversation" [disabled] -- text: Available only on the last message of a completed turn {{clock}}