Ver Fonte

test(web): refresh running-turn snapshots

Yichen Jiang há 1 mês atrás
pai
commit
aa121e409f

+ 4 - 1
apps/web/tests/live-interactions.e2e.ts

@@ -134,7 +134,10 @@ describe('web e2e: live-turn interactions (cancel / error / retry)', () => {
     // The marker IS the synchronization: the stream is provably parked in the
     // hang (prefix chunks delivered to the loop) before the stop click.
     await expect.poll(() => existsSync(marker), { timeout: 15_000 }).toBe(true)
-    await expect(page.getByRole('status').filter({ hasText: 'Deep diving...' }).isVisible()).resolves.toBe(true)
+    await expect.poll(
+      () => page.getByRole('status').filter({ hasText: 'Deep diving...' }).isVisible(),
+      { timeout: 10_000 },
+    ).toBe(true)
     const loadingSnapshot = await captureStableAria(page, '[class*="centerCol"]', scaffold!.workspaceCwd)
     await compareOrRefreshGolden(LOADING_EXPECTED, loadingSnapshot, MODE)
     await page.getByRole('button', { name: 'Stop generating' }).click()

+ 0 - 1
apps/web/tests/snapshots/live-interactions/cancel.expected.md

@@ -11,7 +11,6 @@
   - img
 - button "Edit":
   - img
-- button "Context injection"
 - paragraph: partial
 - text: Stopped
 - button "Copy":

+ 0 - 1
apps/web/tests/snapshots/live-interactions/error-auth.expected.md

@@ -11,7 +11,6 @@
   - img
 - button "Edit":
   - img
-- button "Context injection"
 - textbox "Message the agent"
 - button "Commands":
   - img

+ 0 - 1
apps/web/tests/snapshots/live-interactions/loading.expected.md

@@ -11,7 +11,6 @@
   - img
 - button "Edit":
   - img
-- button "Context injection"
 - paragraph: partial
 - status: Deep diving...
 - textbox "Message the agent"

+ 0 - 1
apps/web/tests/snapshots/live-interactions/retry.expected.md

@@ -11,7 +11,6 @@
   - img
 - button "Edit":
   - img
-- button "Context injection"
 - group:
   - status: Retried model request (1/2) · {{duration}}
 - button "Think The user is asking for a one-sentence description of event sourcing. This is a straightforward knowledge question that doesn't require any skill loading or tool calls.":

+ 1 - 0
apps/web/tests/snapshots/queue-actions/collapsed.expected.md

@@ -12,6 +12,7 @@
 - button "Edit":
   - img
 - paragraph: partial
+- status: Deep diving...
 - button "2 queued messages"
 - textbox "Message the agent"
 - button "Commands":

+ 1 - 0
apps/web/tests/snapshots/queue-actions/editing.expected.md

@@ -12,6 +12,7 @@
 - button "Edit":
   - img
 - paragraph: partial
+- status: Deep diving...
 - button "2 queued messages" [disabled] [expanded]
 - list:
   - listitem:

+ 1 - 0
apps/web/tests/snapshots/queue-actions/ui.expected.md

@@ -12,6 +12,7 @@
 - button "Edit":
   - img
 - paragraph: partial
+- status: Deep diving...
 - list:
   - listitem:
     - text: Edited queue item

+ 1 - 0
apps/web/tests/snapshots/steering/mid-steer.expected.md

@@ -19,6 +19,7 @@
   - img
   - img
   - text: Ask question waiting
+- status: Deep diving...
 - region "Ready to continue?":
   - text: Checkpoint
   - heading "Ready to continue?" [level=2]