From d9dca88f3380e44217f45f67c54d5f0cc94175e6 Mon Sep 17 00:00:00 2001 From: Yichen Jiang Date: Tue, 11 Aug 2026 21:45:30 +0800 Subject: [PATCH] test: stabilize steering mid-turn snapshot --- apps/web/tests/snapshots/steer-all/mid-steer.expected.md | 1 - apps/web/tests/steering.e2e.ts | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/web/tests/snapshots/steer-all/mid-steer.expected.md b/apps/web/tests/snapshots/steer-all/mid-steer.expected.md index ce2d4a66e6..a8a191b3ba 100644 --- a/apps/web/tests/snapshots/steer-all/mid-steer.expected.md +++ b/apps/web/tests/snapshots/steer-all/mid-steer.expected.md @@ -13,7 +13,6 @@ - img - img - text: Context injection @deepseek-ai/dsh-system-prompt -- text: Running - button "Think The user wants me to ask them a checkpoint question first, then continue with whatever they interject. Let me do exactly that.": - img - img diff --git a/apps/web/tests/steering.e2e.ts b/apps/web/tests/steering.e2e.ts index 01b3a85b56..f01f7d8c06 100644 --- a/apps/web/tests/steering.e2e.ts +++ b/apps/web/tests/steering.e2e.ts @@ -354,10 +354,10 @@ describe('web e2e: empty-draft Cmd+Enter steers the whole queue', () => { { timeout: 10_000 }, ).toBe(2) expect(await page.locator('[data-queue-dock]').count()).toBe(0) - // The reasoning row streams independently of the steering handoff; wait - // for it so the mid snapshot pins the assistant step, not the pre-render - // gap a fast machine can catch between steering acceptance and the block. - await page.locator('[data-variant="think"]').first().waitFor({ timeout: 10_000 }) + // The reasoning row streams independently of the steering handoff. Wait + // for the block to settle so the mid snapshot does not race its transient + // visually-hidden Running label while the question keeps the turn open. + await page.locator('[data-variant="think"][data-state="ok"]').first().waitFor({ timeout: 10_000 }) const mid = await captureStableAria(page, '[class*="centerCol"]', scaffold.workspaceCwd) await compareOrRefreshGolden(STEER_ALL_MID, mid, MODE)