Files
orca/src/renderer/src/components/onboarding/NotificationStep.test.tsx
T
2026-05-18 16:02:39 -07:00

34 lines
1.0 KiB
TypeScript

import { renderToStaticMarkup } from 'react-dom/server'
import { describe, expect, it, vi } from 'vitest'
import { NotificationStep } from './NotificationStep'
describe('NotificationStep', () => {
it('renders feature setup in the notification step', () => {
const html = renderToStaticMarkup(
<NotificationStep
value={{
agentTaskComplete: true,
terminalBell: true,
notifyWhenFocused: true
}}
onChange={vi.fn()}
featureSetup={{
browserUse: true,
computerUse: true,
orchestration: true
}}
onFeatureSetupChange={vi.fn()}
featureSetupCommand={null}
featureSetupCommandSelection={null}
/>
)
expect(html).toContain('Set up agent features')
expect(html).toContain('Agent Browser Use')
expect(html).toContain('Computer Use')
expect(html).toContain('Agent Orchestration')
expect(html).toContain('role="checkbox"')
expect(html).not.toContain('Connect task sources')
})
})