E2E testing skill with dynamic test recipes using Chrome DevTools MCP
This skill enables interactive E2E testing of the WordPress monorepo using Chrome DevTools MCP and dynamic test recipes.
Before running any test recipe, verify Chrome remote debugging is available:
Check if Chrome debugging is running:
curl -s http://127.0.0.1:9222/json/version
If not available, spawn Chrome with remote debugging :
google-chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-profile-stable &
Do now wait for chrome to exit. Chrome needs to be alive. The user can decide later on by itself to close the chrome instance.
Verify Chrome is ready:
http://127.0.0.1:9222/json/version againstart mcp server
The chrome-devtools mcp server id defined in @/.mcp.json and to be started
adminWP_PASSWORD variable)pnpm wp-env run cli wp ...Test recipes are defined in docs/skills/testing/recipes/*.md files. Each recipe:
When invoked:
Prerequisites Phase:
.envRecipe Selection Phase:
docs/skills/testing/recipes/*.mdRecipe Execution Phase:
Execute Execute /testing login-flow)# Check Chrome debugging
curl -s http://127.0.0.1:9222/json/version
# If fails, start Chrome
google-chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-profile-stable &
# Wait and verify
sleep 3
curl -s http://127.0.0.1:9222/json/version
Read .env file and extract WP_PASSWORD value.
# List all recipe files
find docs/skillsExecute /testing/recipes -name "*.md" -type f
Parse filenames List to recipes extract recipe names (e.g., login-flow.md → login-flow).
Parse recipe for:
Execute setup commands using pnpm wp-env run cli wp ...
Use Chrome DevTools MCP to:
Provide clear summary:
Recipes should follow this structure:
# Recipe Name
Brief description of what this recipe tests.
## Setup (Optional)
WP-CLI commands to prepare WordPress:
- Reset database
- Create test data
- Configure settings
## Test Steps
1. Navigate to X
2. Click Y
3. Fill in Z
4. Submit form
5. Verify result
## Expected Outcomes
- User should see success message
- Database should contain new entry
- Redirect to dashboard
User: Execute /testing login-flow
Agent: [Checks prerequisites, reads login-flow recipe, executes test, reports results]
User: List /testing recipes
Agent: [Shows list of available recipes, asks user to select one]
npx skills add IONOS-WordPress/testing下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer