From e63df333a1ba5ec45f1c8bd54479cf0f1fb324ff Mon Sep 17 00:00:00 2001 From: ZiyaZhang <199893125+ZiyaZhang@users.noreply.github.com> Date: Sun, 2 Aug 2026 23:45:47 -0700 Subject: [PATCH] test(web): normalize abort snapshot date --- apps/web/tests/bash-abort-row.e2e.ts | 3 +++ apps/web/tests/snapshots/bash-abort-row/ui.expected.md | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/web/tests/bash-abort-row.e2e.ts b/apps/web/tests/bash-abort-row.e2e.ts index 657d910e6d..717cebdd36 100644 --- a/apps/web/tests/bash-abort-row.e2e.ts +++ b/apps/web/tests/bash-abort-row.e2e.ts @@ -67,6 +67,9 @@ describe.skipIf(MODE === 'record')('web e2e: cancelled Bash row disclosure', () await expect.poll(() => call.getByText('Error: command aborted', { exact: true }).count()).toBe(2) const snapshot = (await captureStableAria(page, '[class*="centerCol"]', scaffold.workspaceCwd)) + // The borrowed fixture's UTC date is still the previous day in PDT; + // the disclosure golden must not depend on the runner timezone. + .replace(/\b\d{1,2}\/\d{1,2}(?= \{\{clock\}\})/g, '{{date}}') .split(SEED_ID).join('{{seededId}}') await compareOrRefreshGolden(UI_EXPECTED, snapshot, MODE) expect(tripwire.pageErrors).toEqual([]) diff --git a/apps/web/tests/snapshots/bash-abort-row/ui.expected.md b/apps/web/tests/snapshots/bash-abort-row/ui.expected.md index 798111ee21..8bb3c00b66 100644 --- a/apps/web/tests/snapshots/bash-abort-row/ui.expected.md +++ b/apps/web/tests/snapshots/bash-abort-row/ui.expected.md @@ -4,7 +4,7 @@ - tablist: - tab "Chat" [selected] - tab "Trajectory" -- text: "Run two shell commands: wait for cancellation, then write skipped.txt. 7/18 {{clock}}" +- text: "Run two shell commands: wait for cancellation, then write skipped.txt. {{date}} {{clock}}" - button "Copy": - img - button "Branch into a new conversation":