mirror of
https://github.com/stablyai/orca.git
synced 2026-09-24 08:02:33 +00:00
34 lines
1.0 KiB
TypeScript
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')
|
|
})
|
|
})
|