Q170: agent model suggestions and choices follow the picked provider
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a8fbc08df6
commit
7c291cf7a7
5 files changed
+60
-13
No files matched your search
@@ -105,8 +105,14 @@ test("onboards, hires, and creates work in the Electron shell", async () => {
|
||||
await expect(editModel).toHaveAttribute("placeholder", "gpt-5.4");
|
||||
const editProvider = page.locator(".modal select[name=modelProviderId]");
|
||||
const savedProvider = await editProvider.inputValue();
|
||||
// Suggestions come from the picked provider only, and switching provider clears the model.
|
||||
await expect(page.locator("#edit-model-suggestions option").first()).toHaveAttribute("value", /.+/);
|
||||
await expect(page.locator("#edit-model-suggestions option[value^=claude]")).toHaveCount(0);
|
||||
await editModel.fill("gpt-5.4");
|
||||
await editProvider.selectOption("");
|
||||
await expect(editModel).toHaveAttribute("placeholder", "");
|
||||
await expect(editModel).toHaveValue("");
|
||||
await expect(editModel).toBeDisabled();
|
||||
await editProvider.selectOption(savedProvider);
|
||||
await page.locator(".modal").getByRole("button", { name: "Save" }).click();
|
||||
await expect(page.getByText("Alex Turing").first()).toBeVisible();
|
||||
|
||||
Reference in new issue
Block a user