| name | executar-qa |
| description | Validates feature implementation against PRD, Tech Spec, and Tasks through E2E testing with Playwright MCP, accessibility verification (WCAG 2.2), and visual analysis. Documents all bugs found with screenshot evidence and generates a comprehensive QA report. Use when the user asks to run QA, validate a feature, or test implementation completeness. Do not use for code review, bug fixing, or task implementation. |
QA Execution
Procedures
Step 1: Documentation Analysis (Mandatory)
- Read the PRD at
./tasks/prd-[feature-slug]/prd.md and extract ALL numbered functional requirements.
- Read the Tech Spec at
./tasks/prd-[feature-slug]/techspec.md and verify implemented technical decisions.
- Read Tasks at
./tasks/prd-[feature-slug]/tasks.md and verify completion status of each task.
- Create a verification checklist based on the requirements.
- Do NOT skip this step — understanding requirements is fundamental for QA.
Step 2: Environment Preparation (Mandatory)
- Verify the application is running on localhost.
- Use
browser_navigate from Playwright MCP to access the application.
- Confirm the page loaded correctly with
browser_snapshot.
Step 3: E2E Tests with Playwright MCP (Mandatory)
- Read
references/playwright-tools.md for the available tools reference.
- For each functional requirement from the PRD:
a. Navigate to the feature.
b. Execute the expected flow.
c. Verify the result.
d. Capture screenshot evidence.
e. Mark as PASSED or FAILED.
- Always use
browser_snapshot before interacting to understand current page state.
- Check browser console for JavaScript errors with
browser_console_messages.
- Verify API calls with
browser_network_requests.
Step 4: Accessibility Verification (Mandatory)
- Verify for each screen/component:
- Keyboard navigation works (Tab, Enter, Escape).
- Interactive elements have descriptive labels.
- Images have appropriate alt text.
- Color contrast is adequate.
- Forms have labels associated to inputs.
- Error messages are clear and accessible.
- Use
browser_press_key to test keyboard navigation.
- Use
browser_snapshot to verify labels and semantic structure.
- Follow WCAG 2.2 standard.
Step 5: Visual Verification (Mandatory)
- Capture screenshots of main screens with
browser_take_screenshot.
- Verify layouts in different states (empty, with data, error).
- Document visual inconsistencies found.
- Verify responsiveness if applicable.
Step 6: Bug Documentation
- For each bug found, document with:
- Bug ID, Description, Severity (High/Medium/Low), Screenshot.
- Save bugs to
./tasks/prd-[feature-slug]/bugs.md.
- If a blocking bug is found, document and report immediately.
Step 7: Generate QA Report (Mandatory)
- Read the report template at
assets/qa-report-template.md.
- Fill in all sections with actual results.
- Set status to APPROVED only when ALL PRD requirements are verified and functioning.
Error Handling
- If the application is not running, instruct the user to start it with
bun run dev before retrying.
- If Playwright MCP is unavailable, report the error and suggest running E2E tests manually with
bun run test:e2e.
- If a blocking bug prevents testing subsequent features, document it and continue with testable areas.