| 12345678910111213141516171819202122232425262728293031323334353637 |
- # Test: Create React Component
- # Tests that OpenAgent can create a new React component file
- id: dev-create-component-001
- name: Create React Component
- description: |
- Tests that OpenAgent correctly creates a new React component
- and asks for approval before writing the file.
- category: developer
- prompt: |
- Create a new React functional component called Button in a file at
- evals/test_tmp/Button.tsx. The component should accept props for
- label and onClick handler.
- approvalStrategy:
- type: auto-approve
- expected:
- pass: true
- minMessages: 2
- toolCalls:
- - write
- - bash
- notes: |
- Agent should:
- 1. Ask for approval to create the file
- 2. Write the component to src/components/Button.tsx
- 3. Report completion
- timeout: 60000
- tags:
- - approval-gate
- - file-creation
- - react
|