section 8: Phase 8: Goal mode in the composer, goal status bar and goal

This commit is contained in:
Chris Scott committed 2026-10-03 10:29:46 -04:00
1 parent 4e9f27ab0b
commit 8cd00e1a8a
19 files changed
+877 -11

No files matched your search

@@ -170,4 +170,18 @@ describe('NotificationSettings', () => {
render(<NotificationSettings />)
expect(screen.getByText(/not supported in this browser/i)).toBeInTheDocument()
})
it('writes the goal outcome preference and defaults it on', async () => {
const user = userEvent.setup()
const updateEventPreference = vi.fn()
mockNotifications({ updateEventPreference })
render(<NotificationSettings />)
const toggle = screen.getByRole('switch', { name: 'Goal outcomes' })
expect(toggle).toBeChecked()
await user.click(toggle)
expect(updateEventPreference).toHaveBeenCalledWith('goalOutcome', false)
})
})