test(web): refresh running-turn snapshots

This commit is contained in:
Yichen Jiang
2026-07-31 14:38:27 +08:00
parent a2a79ada82
commit aa121e409f
9 changed files with 8 additions and 5 deletions

View File

@@ -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 // The marker IS the synchronization: the stream is provably parked in the
// hang (prefix chunks delivered to the loop) before the stop click. // hang (prefix chunks delivered to the loop) before the stop click.
await expect.poll(() => existsSync(marker), { timeout: 15_000 }).toBe(true) 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) const loadingSnapshot = await captureStableAria(page, '[class*="centerCol"]', scaffold!.workspaceCwd)
await compareOrRefreshGolden(LOADING_EXPECTED, loadingSnapshot, MODE) await compareOrRefreshGolden(LOADING_EXPECTED, loadingSnapshot, MODE)
await page.getByRole('button', { name: 'Stop generating' }).click() await page.getByRole('button', { name: 'Stop generating' }).click()

View File

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

View File

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

View File

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

View File

@@ -11,7 +11,6 @@
- img - img
- button "Edit": - button "Edit":
- img - img
- button "Context injection"
- group: - group:
- status: Retried model request (1/2) · {{duration}} - 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.": - 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.":

View File

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

View File

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

View File

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

View File

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