The best way to control Claude Code, Codex and more from any computer or phone
test(web): ACP project picker test waits for the popup to take focus (#33061)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
seancarnahan committed
Nov 14, 2026 at 22:27 UTC
294a8418ce82b8f656b864178a5e11a81cbc50ff
1 file changed
+5
-2
apps/web/src/components/settings/AcpSessionManagementSection.browser.test.tsx
+5
-2
@@ -282,8 +282,11 @@ it.each([true, false])(
282
});
283
await using screen = await renderSection({ canList, projects: [project, second] });
284
await screen.getByRole("combobox").click();
285
- if (canList) await userEvent.keyboard("{ArrowDown}{Enter}");
286
- else await screen.getByRole("option", { name: "Second", exact: true }).click();
285
+ if (canList) {
286
+ // Keys sent before the popup takes focus only move focus onto the selected option.
287
+ await expect.element(screen.getByRole("option", { name: "Antigravity" })).toHaveFocus();
288
+ await userEvent.keyboard("{ArrowDown}{Enter}");
289
+ } else await screen.getByRole("option", { name: "Second", exact: true }).click();
290
await expect
291
.element(
292
screen.getByRole("combobox", {