The best way to control Claude Code, Codex and more from any computer or phone
test(web): Add Environment dialog test fills fields instead of typing each key (#35360)
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Theo Browne committed
Nov 12, 2026 at 08:38 UTC
69dd4d08ea5a977a1cfb77abd5e92b99b7ea7a82
1 file changed
+7
-7
apps/web/src/components/settings/AddEnvironmentDialog.browser.test.tsx
+7
-7
@@ -88,7 +88,7 @@ describe("AddEnvironmentDialog", () => {
88
await using _screen = await render(<Owner />);
89
90
await openDialogOnSsh();
91
- await userEvent.type(page.getByPlaceholder("Search hosts or type devbox"), "devbox");
91
+ await userEvent.fill(page.getByPlaceholder("Search hosts or type devbox"), "devbox");
92
await userEvent.click(
93
page.getByRole("dialog").getByRole("button", { name: "Add environment" }),
94
);
@@ -103,12 +103,12 @@ describe("AddEnvironmentDialog", () => {
103
104
await openDialogOnSsh();
105
await userEvent.click(remoteCard());
106
- await userEvent.type(page.getByPlaceholder("backend.example.com"), "devbox.example.com");
107
- await userEvent.type(page.getByPlaceholder("PAIRCODE"), "PAIRCODE");
106
+ await userEvent.fill(page.getByPlaceholder("backend.example.com"), "devbox.example.com");
107
+ await userEvent.fill(page.getByPlaceholder("PAIRCODE"), "PAIRCODE");
108
await userEvent.click(sshCard());
109
- await userEvent.type(page.getByPlaceholder("Search hosts or type devbox"), "devbox");
110
- await userEvent.type(page.getByPlaceholder("root"), "maria");
111
- await userEvent.type(page.getByPlaceholder("22"), "2222");
109
+ await userEvent.fill(page.getByPlaceholder("Search hosts or type devbox"), "devbox");
110
+ await userEvent.fill(page.getByPlaceholder("root"), "maria");
111
+ await userEvent.fill(page.getByPlaceholder("22"), "2222");
112
await userEvent.keyboard("{Escape}");
113
114
await expectDefaultModeAfterReopen();
@@ -124,7 +124,7 @@ describe("AddEnvironmentDialog", () => {
124
finishConnection = resolve;
125
});
126
mocks.connectSshEnvironment.mockImplementationOnce(() => pending);
127
- await userEvent.type(page.getByPlaceholder("Search hosts or type devbox"), "devbox");
127
+ await userEvent.fill(page.getByPlaceholder("Search hosts or type devbox"), "devbox");
128
await userEvent.click(
129
page.getByRole("dialog").getByRole("button", { name: "Add environment" }),
130
);