Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ vi.mock('../../session-catalog/session-catalog-hooks', () => ({
useSessionCatalogQueries: vi.fn(() => []),
}));

const SIDEBAR_WIDTH_STORAGE_KEY = 'qwen-code-web-shell-sidebar-width';

const { I18nProvider } = await import('../../i18n');
const { BrandProvider } = await import('../../brandContext');
const { WebShellSidebar } = await import('./WebShellSidebar');
Expand Down Expand Up @@ -200,6 +202,7 @@ describe('sidebar brand', () => {
// `""` means "use the built-in name" on the settings surface, so a host
// that builds its prop the same way must not get an empty sidebar row and
// a version tooltip reading " v1.2.3".
window.localStorage.setItem(SIDEBAR_WIDTH_STORAGE_KEY, '360');
renderSidebar({ name: '' });

expect(container.textContent).toContain('Qwen Code');
Expand All @@ -209,6 +212,7 @@ describe('sidebar brand', () => {
});

it('names the version tooltip after the brand', () => {
window.localStorage.setItem(SIDEBAR_WIDTH_STORAGE_KEY, '360');
renderSidebar({ name: 'QiuQiu Code' });

expect(
Expand Down
Loading