test(gui): cover edit tool row

This commit is contained in:
Dudu-0223
2026-07-23 14:38:27 +08:00
parent 1ba00bf80c
commit aee859841b
4 changed files with 28 additions and 5 deletions

View File

@@ -145,7 +145,7 @@ describe('web boot chain success pass (keyless, seven real bundles, ?fixture)',
expect(owners).toContain('@deepseek-ai/dsh-client-ui-layout')
})
it('expands fixture reasoning from either its summary or Think title', async () => {
it('renders edit and expands fixture reasoning from either click target', async () => {
onTestFailed(() => saveFailureShot(page, 'smoke-think-disclosure'))
await page.locator('[role="treeitem"]').first().click()
await page.locator('[role="treeitem"][aria-selected]').first().click()
@@ -161,6 +161,11 @@ describe('web boot chain success pass (keyless, seven real bundles, ?fixture)',
await think.getByText('Think', { exact: true }).click()
expect(await think.getAttribute('aria-expanded')).toBe('false')
const editRoot = page.locator('[data-variant="edit"]').first()
await editRoot.waitFor({ state: 'visible', timeout: 10_000 })
expect(await editRoot.getByText('Edit', { exact: true }).count()).toBe(1)
expect(await editRoot.getByText('notes/demo.txt', { exact: true }).count()).toBe(1)
})
it('stayed clean: no page errors across the whole load chain', () => {