fix(agent): move route selector to settings

This commit is contained in:
ginnoir
2026-07-08 19:58:48 -05:00
parent ec3f96dab1
commit 49732b02f3
6 changed files with 89 additions and 106 deletions
+5 -4
View File
@@ -22,10 +22,6 @@ test("assistant chat smoke after opt-in", async ({ page }) => {
await assistantSwitch.click();
}
await expect(assistantSwitch).toBeChecked();
await page.goto("/");
await page.getByRole("button", { name: "Open assistant" }).click();
await expect(page.getByRole("dialog", { name: "Assistant" })).toBeVisible();
const routeSelector = page.getByRole("combobox", { name: "Assistant model route" });
await expect(routeSelector).toBeVisible();
await routeSelector.selectOption("auto");
@@ -34,6 +30,11 @@ test("assistant chat smoke after opt-in", async ({ page }) => {
await routeSelector.selectOption("uncensored");
await expect(routeSelector).toHaveValue("uncensored");
await expect(routeSelector).toBeEnabled();
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 route" })).toHaveCount(0);
const modelSelector = page.getByRole("combobox", { name: "Assistant model", exact: true });
await expect(modelSelector).toBeVisible();
const refreshModels = page.getByRole("button", { name: "Refresh assistant models" });