Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test: remove obsolete tests for assistant text mode, hide-agent-thinking, and chat mascot

Steven Enamakel786c11f0d11f
diff --git a/app/src/components/settings/panels/AppearancePanel.test.tsx b/app/src/components/settings/panels/AppearancePanel.test.tsx
index 7691622e40..acb8878d59 100644
--- a/app/src/components/settings/panels/AppearancePanel.test.tsx
+++ b/app/src/components/settings/panels/AppearancePanel.test.tsx
@@ -86,70 +86,4 @@ describe('<AppearancePanel /> font size', () => {
expect(store.getState().theme.customFontSizePx).toBe(28);
});
- it('toggles assistant text mode for chat output', () => {
- const { getByRole, store } = renderPanel('medium');
- const toggle = getByRole('switch', { name: /settings\.appearance\.assistantTextMode/ });
-
- expect(toggle).toHaveAttribute('aria-checked', 'false');
- fireEvent.click(toggle);
-
- expect(store.getState().theme.agentMessageViewMode).toBe('text');
- });
-
- it('toggles hide-agent-thinking on and off', () => {
- const { getByRole, store } = renderPanel('medium');
- const toggle = getByRole('switch', { name: /settings\.appearance\.hideAgentInsights/ });
-
- expect(toggle).toHaveAttribute('aria-checked', 'false');
- fireEvent.click(toggle);
- expect(store.getState().theme.hideAgentInsights).toBe(true);
-
- fireEvent.click(toggle);
- expect(store.getState().theme.hideAgentInsights).toBe(false);
- });
-});
-
-describe('<AppearancePanel /> chat mascot', () => {
- const renderWithMascot = (chatMascotDismissed: boolean) =>
- renderWithProviders(<AppearancePanel />, {
- preloadedState: {
- theme: {
- mode: 'system',
- tabBarLabels: 'hover',
- fontSize: 'medium',
- customFontSizePx: null,
- agentMessageViewMode: 'bubbles',
- },
- mascot: { chatMascotDismissed },
- },
- });
-
- it('reads on when the mascot is showing', () => {
- // The switch is framed as "show", the stored flag is "dismissed" — so the
- // inversion is worth pinning in both directions.
- const { getByTestId } = renderWithMascot(false);
- expect(getByTestId('switch-show-chat-mascot')).toHaveAttribute('aria-checked', 'true');
- });
-
- it('reads off once the mascot has been dismissed from the composer', () => {
- const { getByTestId } = renderWithMascot(true);
- expect(getByTestId('switch-show-chat-mascot')).toHaveAttribute('aria-checked', 'false');
- });
-
- it('brings a dismissed mascot back', () => {
- // This is the only route back after dismissing it, so it has to work.
- const { getByTestId, store } = renderWithMascot(true);
-
- fireEvent.click(getByTestId('switch-show-chat-mascot'));
-
- expect(store.getState().mascot.chatMascotDismissed).toBe(false);
- });
-
- it('hides it from settings too', () => {
- const { getByTestId, store } = renderWithMascot(false);
-
- fireEvent.click(getByTestId('switch-show-chat-mascot'));
-
- expect(store.getState().mascot.chatMascotDismissed).toBe(true);
- });
});