Skip to content

Commit e9a7c07

Browse files
t3dotggclaude
andauthored
test(web): OpenRouter voice test fills the model picker instead of typing each key (#35581)
Co-authored-by: Claude Fable 5.2 <[email protected]>
1 parent e0d0fb3 commit e9a7c07

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎apps/web/src/components/settings/CloudVoiceConfiguration.browser.test.tsx‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,7 @@ it("OpenRouter needs an exact model, and changing it writes no credential", asyn
215215
await expect.element(save).toBeDisabled();
216216
const picker = dialog.getByRole("combobox", { name: "OpenRouter model" });
217217
await expect.element(picker).toBeVisible();
218-
await picker.click();
219-
await userEvent.keyboard("listen");
218+
await picker.fill("listen");
220219
await expect.element(page.getByRole("option", { name: /Other: Listen 2/ })).toBeVisible();
221220
await page.getByRole("option", { name: /Other: Listen 2/ }).click();
222221
await expect.element(save).toBeEnabled();
@@ -232,8 +231,7 @@ it("OpenRouter needs an exact model, and changing it writes no credential", asyn
232231
await screen.getByRole("button", { name: "Manage OpenRouter" }).click();
233232
const current = dialog.getByRole("combobox", { name: "OpenRouter model" });
234233
await expect.element(current).toHaveValue("Other: Listen 2");
235-
await userEvent.clear(current);
236-
await userEvent.type(current, "acme");
234+
await current.fill("acme");
237235
await page.getByRole("option", { name: /Acme: Transcribe 1/ }).click();
238236
await dialog.getByRole("button", { name: "Save" }).click();
239237
await expect.element(dialog).not.toBeInTheDocument();

0 commit comments

Comments
 (0)