test(web): 交付卡片快照只截取卡片网格,排除与平台相关的桌面提示
This commit is contained in:
1 parent
76d015b484
commit
7e23cec629
2 files changed
+3
-7
No files matched your search
@@ -45,8 +45,9 @@ describe('web e2e: delivery after the closing reply', () => {
|
||||
expect(await card.count()).toBe(1)
|
||||
expect(await card.innerText()).toContain('report.txt')
|
||||
expect(await card.innerText()).toContain('Draft report')
|
||||
const tail = await captureStableAria(page, '[data-turn-tail]', scaffold.workspaceCwd)
|
||||
await compareOrRefreshGolden(join(SNAPSHOT_DIR, 'ui.expected.md'), tail, MODE)
|
||||
// The grid excludes the Host-desktop notice, which depends on the test platform.
|
||||
const cards = await captureStableAria(page, '[data-turn-tail] [data-presented-files-row]', scaffold.workspaceCwd)
|
||||
await compareOrRefreshGolden(join(SNAPSHOT_DIR, 'ui.expected.md'), cards, MODE)
|
||||
await card.getByRole('button', { name: `Preview ${join(scaffold.workspaceCwd, 'report.txt')} in sidebar`, exact: true }).click()
|
||||
await page.locator('[data-rightbar-col] [data-document-preview]').getByText('DRAFT_REPORT', { exact: true }).waitFor()
|
||||
expect(tripwire.pageErrors).toEqual([])
|
||||
|
||||
@@ -1,7 +1,2 @@
|
||||
- button "Preview {{cwd}}/report.txt in sidebar"
|
||||
- text: report.txt Draft report
|
||||
- button "Copy"
|
||||
- button "Good response"
|
||||
- button "Bad response"
|
||||
- button "Branch into a new conversation" [disabled]
|
||||
- text: Available only on the last message of a completed turn {{clock}}
|
||||
Reference in new issue
Block a user