The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(settings): correct appearance panel test to verify default theme
Steven Enamakel411097ba4649
diff --git a/app/src/components/settings/panels/AppearancePanel.test.tsx b/app/src/components/settings/panels/AppearancePanel.test.tsxindex 0f298e45de..c1e626ba9a 100644--- a/app/src/components/settings/panels/AppearancePanel.test.tsx+++ b/app/src/components/settings/panels/AppearancePanel.test.tsx@@ -13,15 +13,42 @@ vi.mock('../hooks/useSettingsNavigation', () => ({function renderPanel(fontSize: 'small' | 'medium' | 'large' | 'xlarge' = 'medium',- customFontSizePx: number | null = null+ customFontSizePx: number | null = null,+ initialEntries?: string[]) {return renderWithProviders(<AppearancePanel />, {preloadedState: {theme: { mode: 'system', tabBarLabels: 'hover', fontSize, customFontSizePx },},+ initialEntries,});}+describe('<AppearancePanel /> tabs', () => {+ it('opens on General: theme gallery, font size and language, no customizer', () => {+ const { getByTestId, getByRole, queryByTestId } = renderPanel();+ expect(getByTestId('theme-gallery')).toBeInTheDocument();+ expect(+ getByRole('radiogroup', { name: 'settings.appearance.fontSizeAria' })+ ).toBeInTheDocument();+ expect(queryByTestId('theme-customize')).not.toBeInTheDocument();+ });++ it('shows the Theme Studio customizer for the #studio hash', () => {+ const { getByTestId, queryByTestId } = renderPanel('medium', null, [+ '/settings/appearance#studio',+ ]);+ expect(getByTestId('theme-customize')).toBeInTheDocument();+ expect(queryByTestId('theme-gallery')).not.toBeInTheDocument();+ });++ it('switches to Theme Studio when its tab is clicked', () => {+ const { getByTestId } = renderPanel();+ fireEvent.click(getByTestId('appearance-tab-studio'));+ expect(getByTestId('theme-customize')).toBeInTheDocument();+ });+});+describe('<AppearancePanel /> font size', () => {it('renders the four font-size options as a radio group', () => {const { getByRole } = renderPanel();