test(web): await sidebar collapse before snapshots

This commit is contained in:
imccyu
2026-09-09 10:12:46 +08:00
parent 4d07fbcb85
commit be58ae0577
3 changed files with 12 additions and 0 deletions
+2
View File
@@ -433,6 +433,8 @@ describe('web e2e: seeded history renders through cold resume', () => {
// Put the column back so the later goldens see the default frame.
await column.locator('[data-sidebar-right-toggle]').click()
await expect.poll(() => frame.getAttribute('data-rightbar-collapsed'), { timeout: 5_000 }).toBe('true')
await page.getByRole('button', { name: 'Open the sidebar', exact: true }).waitFor({ state: 'visible' })
await page.getByRole('navigation', { name: 'Turn navigation', exact: true }).waitFor({ state: 'visible' })
})
it.skipIf(MODE === 'record')('expands the cold-resumed compact summary', async () => {
@@ -4,9 +4,14 @@
- button "Session log":
- text: Session log
- img
- button "Open the sidebar":
- img
- tablist:
- tab "Chat" [selected]
- tab "Trajectory"
- navigation "Turn navigation":
- button "Jump to turn 1"
- button "Jump to turn 2"
- button "System prompt":
- img
- img
@@ -4,9 +4,14 @@
- button "Session log":
- text: Session log
- img
- button "Open the sidebar":
- img
- tablist:
- tab "Chat" [selected]
- tab "Trajectory"
- navigation "Turn navigation":
- button "Jump to turn 1"
- button "Jump to turn 2"
- button "System prompt":
- img
- img