feat(quick-pane): promote active runtime
This commit is contained in:
@@ -6,7 +6,15 @@ it("uses selected model thinking capabilities and reconciles unavailable values"
|
||||
const onChange = vi.fn();
|
||||
render(
|
||||
<ThinkingSelector
|
||||
model={{ thinkingLevelMap: { off: "off", high: "high" } }}
|
||||
model={{
|
||||
reasoning: true,
|
||||
thinkingLevelMap: {
|
||||
minimal: null,
|
||||
low: null,
|
||||
medium: null,
|
||||
high: "high",
|
||||
},
|
||||
}}
|
||||
value="medium"
|
||||
onChange={onChange}
|
||||
/>,
|
||||
@@ -15,7 +23,9 @@ it("uses selected model thinking capabilities and reconciles unavailable values"
|
||||
const selector = screen.getByRole("combobox", { name: "Thinking" });
|
||||
expect(selector).toHaveValue("off");
|
||||
expect(
|
||||
within(selector).getAllByRole("option").map((option) => option.textContent),
|
||||
within(selector)
|
||||
.getAllByRole("option")
|
||||
.map((option) => option.textContent),
|
||||
).toEqual(["Off", "High"]);
|
||||
fireEvent.change(selector, { target: { value: "high" } });
|
||||
expect(onChange).toHaveBeenCalledWith("high");
|
||||
|
||||
Reference in New Issue
Block a user