- Add 5 workflow tests (task, context loading, stop-on-failure, conversational) - Add 1 shared test (agent-agnostic approval gate) - Reorganize: opencode/ → agents/ for clearer structure - Rename: sdk-tests/ → tests/ for simplicity - Update test runner paths to new structure - Add comprehensive documentation (test plan, guides, migration) - Update all documentation with new paths Total: 13 tests (was 6, added 7) Coverage: +31% workflow compliance All tests passing: 11/11 (100%)
37 lines
816 B
YAML
37 lines
816 B
YAML
# 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
|
|
src/components/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
|