/green-selenium - Verify Selenium Browser Test (Green Phase)
Orchestrates green-agent for selenium layer.
Usage
code
/green-selenium "Story name" "Scenario name" /green-selenium "RegistrationUiTest" "userSeesRegistrationForm" /green-selenium # Interactive selection
Prerequisites
Before enabling Selenium test, ensure:
- •Frontend logic implemented (all
/green-frontendtests pass) - •Frontend API client implemented (all
/green-frontend-apitests pass) - •Backend running (
/run-backend) - •Frontend running (
/run-frontend) - •React component renders correctly with all
data-testidattributes
Workflow
- •Parse user input (test class, method name)
- •Load agent instructions from
.claude/agents/green-agent.md - •Execute the following steps:
- •Find disabled test in
acceptance/app-acceptance/ - •Read test (understand expectations) - READ-ONLY
- •Verify prerequisites: logic + API tests pass, backend + frontend running
- •Remove
@Disabledannotation (ONLY allowed test change) - •Run test using
Skill tool: skill="test-acceptance", args="frontend {TestClassName}" - •Verify GREEN state
- •If FAILED: re-add @Disabled and analyze failure
- •May need to implement React component changes
- •May need to add missing
data-testidattributes - •May need to fix routing or navigation
- •Find disabled test in
- •Return result summary
Key Rules
- •TESTS ARE READ-ONLY - only remove @Disabled
- •If test fails, re-add @Disabled and report what needs fixing
- •Must have backend AND frontend running before test execution
- •All frontend logic and API tests must pass before attempting
- •Use Skill tool for test execution (not gradle directly)
Story Mapping
| # | Story |
|---|---|
| 01 | Login/Logout |
| 02 | Registration |
| 03 | Password Reset |
| 04 | Connect Calendar |
| 05 | Create Task |
| 06 | Edit Task |
| 07 | Delete Task |
| 08 | Archive/Restore Task |
| 09 | Task Detail View |
| 10 | Activity Log |
| 11 | Dashboard |
| 12 | Billing & Subscription |
Next Step
After green phase: commit or /refactor