test(web): stop pre-clicking the fixture group in the title snapshot
The Intent's current-group effect already expands the target workspace; with intent no longer forcing expansion, the header click collapsed it.
This commit is contained in:
@@ -94,10 +94,10 @@ it('projects initial and revised durable titles through the built nine-plugin fi
|
|||||||
})
|
})
|
||||||
|
|
||||||
const tree = await screen.findByRole('tree', { name: 'Sessions' }, { timeout: 10_000 })
|
const tree = await screen.findByRole('tree', { name: 'Sessions' }, { timeout: 10_000 })
|
||||||
const projectCount = await within(tree).findByText('4 sessions')
|
// The fixture Intent selects the workspace, so the current-group effect
|
||||||
const projectRow = projectCount.closest<HTMLElement>('[role="treeitem"]')
|
// already expanded it; clicking the header would now collapse (the twist
|
||||||
if (projectRow === null) throw new Error('fixture project row missing')
|
// stays live since intent stopped forcing expansion).
|
||||||
fireEvent.click(projectRow)
|
await within(tree).findByText('4 sessions')
|
||||||
|
|
||||||
const initialLabel = 'Fixture 历史会话'
|
const initialLabel = 'Fixture 历史会话'
|
||||||
const initialRowLabel = await screen.findByText(initialLabel)
|
const initialRowLabel = await screen.findByText(initialLabel)
|
||||||
|
|||||||
Reference in New Issue
Block a user