fix(accounts): show one codex plan badge

This commit is contained in:
Tam Nhu Tran committed 2026-04-14 21:35:07 -04:00
1 parent 0bfdc522d5
commit 2a3632e5a5
7 files changed
+226 -166

No files matched your search

@@ -154,10 +154,10 @@ describe('AccountCard grouped quota tooltip', () => {
/>
);
expect(screen.getByTitle('Business · Workspace 04a0f049 • Free')).toBeInTheDocument();
expect(screen.getByTitle('Business • Free')).toBeInTheDocument();
expect(screen.getByText('Biz')).toBeInTheDocument();
await userEvent.hover(screen.getByText('Business · Workspace 04a0f049'));
await userEvent.hover(screen.getByText('Business'));
const businessPlan = (await screen.findAllByText('Plan: team')).find((node) =>
node.closest('[data-slot="tooltip-content"]')
);
@@ -202,9 +202,8 @@ describe('AccountCard grouped quota tooltip', () => {
/>
);
expect(screen.getByTitle('Business · Workspace 04a0f049 • Personal · Pro')).toBeInTheDocument();
expect(screen.getByText('Personal · Pro')).toBeInTheDocument();
expect(screen.getByTitle('Business • Pro')).toBeInTheDocument();
expect(screen.getAllByText('Pro').length).toBeGreaterThan(0);
expect(screen.queryByText('Free')).not.toBeInTheDocument();
expect(screen.getByText('Pro')).toBeInTheDocument();
});
});