From 7e23cec629f69c5f7eeece5f572d63c452219052 Mon Sep 17 00:00:00 2001 From: yudshj Date: Wed, 21 Oct 2026 10:52:58 +0800 Subject: [PATCH] =?UTF-8?q?test(web):=20=E4=BA=A4=E4=BB=98=E5=8D=A1?= =?UTF-8?q?=E7=89=87=E5=BF=AB=E7=85=A7=E5=8F=AA=E6=88=AA=E5=8F=96=E5=8D=A1?= =?UTF-8?q?=E7=89=87=E7=BD=91=E6=A0=BC=EF=BC=8C=E6=8E=92=E9=99=A4=E4=B8=8E?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E7=9B=B8=E5=85=B3=E7=9A=84=E6=A1=8C=E9=9D=A2?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/tests/present-after-closing-reply.e2e.ts | 5 +++-- snapshots/web/present-after-closing-reply/ui.expected.md | 5 ----- 2 files changed, 3 insertions(+), 7 deletions(-) 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}}