Audit and fix accessibility issues across the portfolio to ensure WCAG 2.1 AA compliance.
中文简介正在准备中。当前显示原文说明。
Browser automation and testing using Playwright MCP server for visual regression, accessibility, route testing, and screenshot capture.
中文简介正在准备中。当前显示原文说明。
安装前可以查看交给 AI 代理的指令内容。
Playwright MCP provides browser automation capabilities through the Model Context Protocol, enabling AI agents to interact with web pages using structured accessibility snapshots.
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["@playwright/mcp@latest"]
}
}
}
playwright.config.tstests/playwright/tests/playwright/reports/tests/playwright/screenshots/# Run all tests
pnpm exec playwright test
# Run specific test file
pnpm exec playwright test routes.spec.ts
# Run with UI
pnpm exec playwright test --ui
# Run headed (visible browser)
pnpm exec playwright test --headed
# Run in debug mode
pnpm exec playwright test --debug
# Run screenshot capture tests
pnpm exec playwright test screenshots.spec.ts
# View screenshots
open tests/playwright/screenshots/
# Open HTML report
pnpm exec playwright show-report
| Category | File | Description |
|---|---|---|
| Routes | routes.spec.ts | All pages return 200 OK |
| Dynamic Routes | dynamic-routes.spec.ts | Blog, components, blocks |
| API Routes | api-routes.spec.ts | Sanity API, RSS, SEO |
| Visual Regression | visual-regression.spec.ts | Screenshot comparison |
| Accessibility | accessibility.spec.ts | WCAG 2.1 AA compliance |
| Performance | performance.spec.ts | Core Web Vitals |
| SEO | seo-meta.spec.ts | Meta tags, structured data |
| Interactions | command-menu.spec.ts | Command menu, theme toggle |
| Screenshots | screenshots.spec.ts | Full-page, responsive |
When Playwright MCP server is connected, these tools are available:
browser_navigate - Navigate to a URLbrowser_go_back - Go back in historybrowser_go_forward - Go forward in historybrowser_refresh - Refresh the pagebrowser_click - Click an elementbrowser_type - Type text into an elementbrowser_fill - Fill a form fieldbrowser_select_option - Select dropdown optionbrowser_hover - Hover over an elementbrowser_drag - Drag and dropbrowser_screenshot - Take a screenshotbrowser_take_screenshot - Take element screenshotbrowser_press_key - Press a keyboard keybrowser_tab_list - List open tabsbrowser_tab_new - Open new tabbrowser_tab_select - Select a tabbrowser_tab_close - Close a tabbrowser_run_code - Run Playwright codebrowser_network_requests - List network requestsbrowser_console_messages - Get console messagesbrowser_save_state - Save browser statebrowser_load_state - Load browser statepnpm exec playwright install
Increase timeout in playwright.config.ts or use --timeout flag
Adjust maxDiffPixelRatio in visual regression tests
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Audit and fix accessibility issues across the portfolio to ensure WCAG 2.1 AA compliance.
中文简介正在准备中。当前显示原文说明。
Creates a new blog post document in the Sanity studio. Use when the user wants to write a blog post, publish an article, or schedule a future post.
中文简介正在准备中。当前显示原文说明。
Creates a new certification document in the Sanity studio. Use when the user wants to add a credential, certificate, or professional accreditation to the Certifications collection.
中文简介正在准备中。当前显示原文说明。
Adds a new skill MD file to the studio's skills collection. Use when the user wants to author a new step-by-step recipe for the studio's in-app Skills tool or the .agents mirror.
中文简介正在准备中。当前显示原文说明。
Creates a new project document in the Sanity studio. Use when the user wants to add a new portfolio project, a case study, or a work sample to the Projects collection.
中文简介正在准备中。当前显示原文说明。
Creates a new experience document in the Sanity studio. Use when the user wants to add a job, role, internship, or work history entry to the Experience collection.
中文简介正在准备中。当前显示原文说明。