mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
section 8: Phase 8: Goal mode in the composer, goal status bar and goal
This commit is contained in:
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)
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user