diff --git a/apps/web/tests/permission-policy-context.e2e.ts b/apps/web/tests/permission-policy-context.e2e.ts index 3ea7507550..11b3c1eebf 100644 --- a/apps/web/tests/permission-policy-context.e2e.ts +++ b/apps/web/tests/permission-policy-context.e2e.ts @@ -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')