fix(ui): update auto-router reasoning tier test to match refreshed preset

PR #40341 refreshed the Anthropic Family preset's REASONING tier from
claude-opus-5 to claude-fable-5-1 and updated autorouter_presets.test.ts,
but missed the matching expectation in add_auto_router_tab.test.tsx.
Read the expected tier_model_configs from the preset itself so a future
model swap in autorouter_presets.json does not red this test again.

Co-authored-by: Krrish Dholakia <krrish-berri-2@users.noreply.github.com>
This commit is contained in:
Cursor Agent 2026-09-09 14:06:27 +00:00
parent 47b15ffb67
commit bb4160c0ce
No known key found for this signature in database

View file

@ -1046,9 +1046,7 @@ describe("AddAutoRouterTab", () => {
await waitFor(() => expect(handleAddAutoRouterSubmit).toHaveBeenCalled());
expect(vi.mocked(handleAddAutoRouterSubmit).mock.calls.at(-1)?.[0]).toMatchObject({
complexity_router_config: {
tier_model_configs: {
REASONING: [{ model_name: "claude-opus-5", litellm_params: { reasoning_effort: "high" } }],
},
tier_model_configs: ANTHROPIC_PRESET.complexity_router_config.tier_model_configs,
},
});
});