test(web): stabilize workspace snapshots

This commit is contained in:
imccyu
2026-07-25 16:30:23 +08:00
parent 468c64a078
commit c06cb2deec
2 changed files with 15 additions and 8 deletions
+3 -2
View File
@@ -93,8 +93,9 @@ it('projects initial and revised durable titles through the built nine-plugin fi
unmount = () => { entry.dispose() }
})
const projectLabel = await screen.findByText('fixture', {}, { timeout: 10_000 })
const projectRow = projectLabel.closest<HTMLElement>('[role="treeitem"]')
const tree = await screen.findByRole('tree', { name: 'Sessions' }, { timeout: 10_000 })
const projectCount = await within(tree).findByText('4 sessions')
const projectRow = projectCount.closest<HTMLElement>('[role="treeitem"]')
if (projectRow === null) throw new Error('fixture project row missing')
fireEvent.click(projectRow)