Fix provider-selection test for synthetic default row

The selector rework now synthesizes a "Default" row for ready enabled
providers without explicit models, so they share the same `kind: "models"`
shape as providers with real models. Updated the stale assertion that
still expected the old `providerDefault` kind.
This commit is contained in:
Mohamed Boudra
2026-05-27 23:14:33 +07:00
parent e3eb333ddc
commit 00759e7994
@@ -68,7 +68,7 @@ describe("combined model selector data", () => {
]); ]);
}); });
it("represents ready enabled providers without explicit models as provider-default selection", () => { it("synthesizes a default model row for ready enabled providers without explicit models", () => {
expect( expect(
buildSelectableProviderSelectorProviders([ buildSelectableProviderSelectorProviders([
snapshotEntry({ snapshotEntry({
@@ -81,7 +81,20 @@ describe("combined model selector data", () => {
{ {
id: "deepseek-tui", id: "deepseek-tui",
label: "DeepSeek TUI", label: "DeepSeek TUI",
modelSelection: { kind: "providerDefault", label: "Default" }, modelSelection: {
kind: "models",
rows: [
{
favoriteKey: "deepseek-tui:",
provider: "deepseek-tui",
providerLabel: "DeepSeek TUI",
modelId: "",
modelLabel: "Default",
description: undefined,
isDefault: true,
},
],
},
}, },
]); ]);
}); });