fix(agent): use native model selector

This commit is contained in:
ginnoir
2026-07-08 18:52:19 -05:00
parent 1092941c45
commit 716bca0fcb
2 changed files with 23 additions and 29 deletions
+3 -1
View File
@@ -26,7 +26,9 @@ test("assistant chat smoke after opt-in", async ({ page }) => {
await page.goto("/");
await page.getByRole("button", { name: "Open assistant" }).click();
await expect(page.getByRole("dialog", { name: "Assistant" })).toBeVisible();
await expect(page.getByRole("combobox", { name: "Assistant model" })).toBeVisible();
const modelSelector = page.getByRole("combobox", { name: "Assistant model" });
await expect(modelSelector).toBeVisible();
await expect.poll(() => modelSelector.evaluate((node) => node.tagName)).toBe("SELECT");
await page.getByLabel("Message for Assistant").fill("hello assistant");
await page.getByRole("button", { name: "Send" }).click();