test(web): wait for editable permission composer

This commit is contained in:
imccyu
2026-08-26 14:52:53 +08:00
parent 64575de655
commit b8360cac53
@@ -106,7 +106,7 @@ describe('web e2e: current sandbox policy reaches the model before tools', () =>
await input.fill(PROMPTS[index] as string)
await input.press('Enter')
sessionId = await settled
await expect.poll(() => input.isEnabled(), { timeout: 10_000 }).toBe(true)
await page.locator('[data-composer-input][contenteditable="true"]').first().waitFor({ timeout: 10_000 })
}
await input.fill('/permission read-only')