test(web): await Session restoration before preset menu checks
This commit is contained in:
1 parent
534acc5952
commit
c2f7722d86
1 file changed
+2
@@ -90,6 +90,8 @@ it('persists Coding Tools and limits the built-in PTC and Minimal choices in ses
|
||||
await expect.poll(livePresets, { timeout: 15_000 }).toEqual(['standard'])
|
||||
|
||||
await page.reload()
|
||||
// The sessionless preset chip is replaced when the saved Session is restored.
|
||||
await page.locator('[data-composer-input][contenteditable="true"]').waitFor()
|
||||
await page.getByRole('button', { name: 'Standard mode', exact: true }).click()
|
||||
await expect.poll(() => menu.getByRole('menuitem').count()).toBe(3)
|
||||
await page.keyboard.press('Escape')
|
||||
|
||||
Reference in new issue
Block a user