E2E Test: <Test Name>
<!-- Template for E2E test definitions. Copy this file and fill in the sections below. Usage: /skill:ac-qa-test-e2e <path-to-your-test>.md -->User Story
As a <user type> I want to <action> So that <benefit>
Pre-Conditions
- Application is running at base URL
- <any specific state requirements>
Test Steps
- Navigate to
<path> - Verify page title contains "<expected text>"
- Screenshot "initial_state"
- Click "<button text or selector>"
- Verify "<expected result>"
- Type "<text>" into "<input selector>"
- Screenshot "after_action"
- Verify <final condition>
Success Criteria
- [ ] Page loads without errors
- [ ] <specific criterion 1>
- [ ] <specific criterion 2>
- [ ] All screenshots captured successfully
Expected Output
{
"test_name": "<Test Name>",
"status": "passed",
"screenshots": [
"{PROJECT_ROOT}/outputs/e2e/<test-name>/01_initial_state.png",
"{PROJECT_ROOT}/outputs/e2e/<test-name>/02_after_action.png"
],
"error": null
}
Notes
- Video recording is explicit: use
playwright-cli video-startbefore andvideo-stopafter the test flow. Output saved to{PROJECT_ROOT}/outputs/e2e/ - Screenshots saved to
{PROJECT_ROOT}/outputs/e2e/<test-name>/ - Use descriptive screenshot names for clarity