test(web): snapshot artifact-style plans and automatic previews

This commit is contained in:
Yichen Jiang committed 2026-09-17 14:35:19 +08:00
1 parent 1e1dd43fee
commit e68bc539b8
3 files changed
+3 -9

No files matched your search

+1 -1
View File
@@ -203,7 +203,7 @@ describe('web e2e: dismissed plan history', () => {
await page.locator('[data-sidebar-right-toggle]').click()
await page.reload({ waitUntil: 'load' })
await page.locator('[data-plan-card]').waitFor({ state: 'visible' })
expect(await page.locator('[data-plan-preview]').count()).toBe(0)
expect(await page.locator('[data-plan-preview]').isVisible()).toBe(false)
expect(tripwire.pageErrors).toEqual([])
} finally {
await browser?.close()
@@ -32,10 +32,7 @@
- text: Since the user has explicitly asked me not to read or write any files and to go straight to planning, I'll proceed with
- code: exit_plan_mode
- text: .
- 'button "Open plan: Add `--greeting` flag to CLI"':
- img
- text: "Add `--greeting` flag to CLI"
- img
- 'button "Open plan: Add `--greeting` flag to CLI"': "Add `--greeting` flag to CLI Plan · Markdown Open"
- 'button "Tool call exit_plan_mode · # Add `--greeting` flag to CLI"':
- img
- img
@@ -20,10 +20,7 @@
- button "1 tool call · 1 message":
- text: 1 tool call · 1 message
- img
- 'button "Open plan: Add `--greeting` flag to CLI"':
- img
- text: "Add `--greeting` flag to CLI"
- img
- 'button "Open plan: Add `--greeting` flag to CLI"': "Add `--greeting` flag to CLI Plan · Markdown Open"
- button "System prompt":
- img
- img