Merge pull request #5697 from deepseek-harness/worktree/fix-dev-tools-reload-20261005

test(web): await Session restoration before preset menu checks
This commit is contained in:
Tianyi Cui authored and GitHub committed 2026-10-05 09:55:11 +08:00
commit f9719330db
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')