mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-19 08:14:52 +00:00
Merge pull request #1449 from kaitranntt/codex/fix-gemini-tooltip-rendering-bug
fix(ui): preserve Gemini tier fallback without entitlement
This commit is contained in:
2 files changed
+16
-1
No files matched your search
@@ -83,6 +83,20 @@ describe('QuotaTooltipContent', () => {
|
||||
expect(screen.getByText(expectedReset)).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('renders the Gemini tier label when entitlement evidence is absent', () => {
|
||||
const quota = createGeminiQuotaResult({
|
||||
entitlement: undefined,
|
||||
tierLabel: 'Legacy Pro',
|
||||
tierId: null,
|
||||
creditBalance: null,
|
||||
});
|
||||
|
||||
render(<QuotaTooltipContent quota={quota} resetTime={null} />);
|
||||
|
||||
expect(screen.getByText('Tier')).toBeInTheDocument();
|
||||
expect(screen.getByText('Legacy Pro')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('falls back to the shared reset indicator when Gemini buckets omit reset timestamps', () => {
|
||||
vi.useFakeTimers();
|
||||
vi.setSystemTime(new Date('2026-01-29T00:00:00Z'));
|
||||
|
||||
Reference in new issue
Block a user