page-test
БесплатноБез исполняемых скриптовНе проверенSystematically test all pages for errors, functionality, and proper rendering using Playwright MCP
от mwguerra★ 35 звёзд на GitHubОб этом скилле
E2E Page Testing Skill
Overview
This skill systematically tests every page in an application using Playwright MCP. It verifies page loading, element rendering, interaction functionality, and error detection.
Standard Test Plan Location
Plan file: tests/e2e-test-plan.md
This skill reads the page inventory from the test plan at tests/e2e-test-plan.md. If the plan file doesn't exist, the calling command should invoke the test-plan skill first to generate it.
Purpose
Ensure that:
- All pages load without errors
- All expected elements are present
- All interactions work correctly
- No console or network errors occur
- Pages are accessible and functional
Workflow
Step -1: Test Plan Verification (REQUIRED FIRST)
CRITICAL: Before testing pages, verify the test plan exists.
Check for Test Plan
- Look for
tests/e2e-test-plan.md - If the file exists, read the "Pages to Test" section
- If the file does NOT exist, STOP and report that the plan must be generated first
- Look for
Read Page List from Plan
- Extract public pages
- Extract authenticated pages
- Extract admin pages
- Use this list for testing
Step 0: Build Assets & Verify URL (CRITICAL - DO THIS FIRST)
Before testing any pages, build assets and verify the application is accessible.
0a. Build Application Assets
Missing assets are a common cause of E2E test failures. Before testing:
Check for package.json
Look for package.json in project root If found, assets likely need buildingRun Build Commands
npm install # If node_modules missing npm run build # Compile production assets # or for dev server: npm run dev # Start Vite/webpack dev serverDetect Build Issues After loading a page, check for:
- Unstyled content (missing CSS)
- Blank pages (missing JS)
- Console errors: "Failed to load resource"
- Network 404s for .js, .css, .png files
- Errors about /build/, /dist/, /assets/
If assets are missing:
- Stop testing
- Run
npm install && npm run build - Restart and retest
0b. URL/Port Verification
Navigate to Base URL
browser_navigate({ url: base_url }) browser_snapshot()Verify Correct Application Check the snapshot for:
- ✅ Application name, logo, or known branding
- ✅ Expected navigation structure
- ✅ Known page elements from codebase analysis
- ❌ Default server pages ("Welcome to nginx!", "It works!", "Apache2 Ubuntu Default Page")
- ❌ Connection errors ("This site can't be reached", "Connection refused")
- ❌ Different/unexpected application content
Port Discovery (if verification fails) If the page doesn't match expected application:
Common ports to try: - http://localhost:8000 (Laravel/Django) - http://localhost:8080 (Common alternative) - http://localhost:3000 (Node.js/React/Next.js) - http://localhost:5173 (Vite dev server) - http://localhost:5174 (Vite alternative port) - http://localhost:5000 (Flask/Python) - http://localhost:4200 (Angular) - http://localhost:8888 (Jupyter/custom)For each port:
browser_navigate({ url: "http://localhost:{port}" }) browser_snapshot() // Check if this matches the expected application // If yes, use this as the new base URLCheck Project Configuration If port discovery fails, look for hints in:
.envfile (APP_PORT, PORT, VITE_PORT, SERVER_PORT)package.jsonscripts (look for --port flags)vite.config.js/ts(server.port setting)docker-compose.yml(port mappings).env.examplefor default port values
Proceed or Stop
- If correct URL found: Update base_url and continue testing
- If URL differs from provided: Log warning in test report
- If no working URL found: STOP TESTING and report error
- "Application not accessible at {provided_url}"
- "Ports attempted: 8000, 8080, 3000, 5173, 5000, 4200"
- "Suggestion: Verify the development server is running"
Step 1: Page Inventory
List All Pages
- Extract from route definitions
- Include dynamic route patterns
- Note authentication requirements
Categorize Pages
- Public pages
- Authenticated pages
- Admin pages
- Special pages (error pages, maintenance, etc.)
Define Expected Elements
- Navigation elements
- Main content areas
- Forms and inputs
- Action buttons
- Footer elements
Step 2: Page Load Testing
For EACH page:
Navigate to Page
browser_navigate({ url: "/page-path" })Wait for Load
browser_wait_for({ text: "Expected content" }) OR browser_wait_for({ time: 2 })Capture Snapshot
browser_snapshot()Check Console Messages
browser_console_messages({ level: "error" })**Check Ne
Установить page-test в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл page-test?
Systematically test all pages for errors, functionality, and proper rendering using Playwright MCP
Как установить скилл page-test?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл page-test запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic