fix(cliproxy): keep provider sections consistent for variants

This commit is contained in:
Tam Nhu Tran committed 2026-04-22 20:02:54 -04:00
1 parent f6c86b79fc
commit 254abd504f
10 files changed
+149 -51

No files matched your search

@@ -75,4 +75,24 @@ describe('ProviderInfoTab', () => {
)
).toBeInTheDocument();
});
it('uses the base provider when rendering variant track metadata', () => {
render(
<ProviderInfoTab
provider="my-cursor"
baseProvider="cursor"
displayName="My Cursor Variant"
defaultTarget="claude"
authStatus={{
...authenticatedStatus,
provider: 'cursor',
displayName: 'Cursor',
}}
supportsModelConfig
/>
);
expect(screen.getByText('Track')).toBeInTheDocument();
expect(screen.getByText('Plus extras / community-maintained')).toBeInTheDocument();
});
});