UI E2E Test Implementation Command
User Input
$ARGUMENTS
Extract test number (if specified) and consider any additional context from user input (if not empty).
Overview
Check Prerequisites:
- Verify
docs/e2e-ui/test-targets.mdexists (English version, for AI) - If not exists ERROR: "Please run /e2e-ui-research first"
- Verify
Read Project Configuration:
- Read
playwright.config.ts(or.js):- Extract test directory from
testDirortestMatch - Extract base URL from
webServer.urloruse.baseURL
- Extract test directory from
- Read
package.json(in same directory):- Detect framework from dependencies
- Read
Load Test Targets:
- Read test scenarios from document
- Extract test number from $ARGUMENTS (if provided)
- Identify execution order
Execute Tests Sequentially:
- For each test scenario (in order): a. Manual Testing Phase: Verify behavior with Playwright MCP b. Bug Detection: Check for issues c. Bug Handling: If bug found, create bilingual bug report (ko.md + md) and continue d. Code Writing Phase: Write Playwright test code if passed (skip if bug) e. Progress Reporting: Update summary document
Generate Documentation:
- Create
docs/e2e-ui/summary-test-N.mdfor each completed test - Create
docs/e2e-ui/bug-report-test-N.ko.mdandbug-report-test-N.mdfor bugs - Track overall progress
- Create
Report Results:
- List of completed tests
- List of bugs found (with details)
- Summary of test code created
- Guide next steps
Key Rules
🚨 Bug Detection (Important)
Document and continue when these situations occur:
- Page Load Failure: Navigation timeout, 404/500 errors, Blank page
- Element Not Found: Expected button/input missing, Wrong element attributes
- Interaction Failure: Click not working, Input text not entering
- Console Errors: JavaScript errors, Network failures
- Unexpected Behavior: Wrong navigation, Wrong data display
Bug Report Format (create both ko.md and md versions):
Files to create:
docs/e2e-ui/bug-report-test-N.ko.md(Korean)docs/e2e-ui/bug-report-test-N.md(English)
After creating bug report, continue to next test instead of stopping.
✅ MUST DO
- Read
playwright.config.tsandpackage.jsonfirst for project configuration - Run tests one at a time (sequentially)
- Use Playwright MCP for actual testing before code writing
- Create bilingual bug reports (ko.md + md) when bugs found
- Continue testing after documenting bugs
- Write test code in directory from playwright.config.ts
- Follow naming convention from testMatch pattern
- Take screenshots for evidence
❌ NEVER DO
- Skip reading
playwright.config.ts - Run multiple tests in parallel
- Skip manual verification phase
- Stop testing after finding bug (should continue)
- Write test code without verifying behavior
- Write tests outside directory specified in playwright.config
- Hardcode base URLs or test directories
🎯 Test Implementation Process
For each test:
Manual Verification (using Playwright MCP):
- Navigate to page
- Interact with UI elements
- Take snapshots
- Verify expected behavior
- Check console messages
Bug Check:
- Did everything work as expected?
- Any errors or warnings?
- Is behavior correct?
Decision Point:
- ✅ If Pass: Proceed to write test code
- 🐛 If Bug Found: Create bilingual bug report, continue to next test
Write Test Code (only if passed):
// Create test file in directory from playwright.config.ts // Follow project test patterns // Include assertions and error handling // Follow naming convention from testMatch patternDocumentation:
- Generate summary document
- Record what was tested
- Note observations
Execution Flow
Initialization
- Read project configuration files
- Load test targets document (English version, for AI)
- Determine which tests to run
- Check existing summaries (resume capability)
For Each Test
- Announce: "Starting Test N: [name]"
- Manual Testing: Use Playwright MCP tools
- Evaluate: Is behavior correct? Any errors?
- Decide: Bug report or continue to code
- Write Code (only if passed)
- Document: Generate summary or bug report
- Progress: "Test N complete. Moving to Test N+1..."
Completion
- Provide comprehensive summary:
- List of tests passed with generated code
- List of bugs found with report links
- Overall coverage achieved
- Recommendations for next steps
Execute
Start working according to the guidelines above.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.