E2E Test:
User Story
As a
Pre-Conditions
- Application is running at base URL
Test Steps
- Navigate to
<path> - Verify page title contains "
" - Screenshot "initial_state"
- Click "
- Verify "
" - Type "
" into "" - Screenshot "after_action"
- Verify
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