diff --git a/app/src/components/settings/panels/AppearancePanel.test.tsx b/app/src/components/settings/panels/AppearancePanel.test.tsx new file mode 100644 index 000000000..16de804c5 --- /dev/null +++ b/app/src/components/settings/panels/AppearancePanel.test.tsx @@ -0,0 +1,48 @@ +import { fireEvent, within } from '@testing-library/react'; +import { describe, expect, it, vi } from 'vitest'; + +import { renderWithProviders } from '../../../test/test-utils'; +import AppearancePanel from './AppearancePanel'; + +// Pass-through translator so assertions can target the i18n keys directly. +vi.mock('../../../lib/i18n/I18nContext', () => ({ useT: () => ({ t: (key: string) => key }) })); + +vi.mock('../hooks/useSettingsNavigation', () => ({ + useSettingsNavigation: () => ({ breadcrumbs: [], navigateBack: vi.fn() }), +})); + +vi.mock('../components/SettingsHeader', () => ({ + default: ({ title }: { title: string }) =>