- Home
- Skills
- Manutej
- Luxor Claude Marketplace
- Playwright Visual Testing
playwright-visual-testing_skill
- Shell
40
GitHub Stars
2
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill manutej/luxor-claude-marketplace --skill playwright-visual-testing- README.md12.2 KB
- SKILL.md39.2 KB
Overview
This skill provides browser automation and visual testing using Playwright with an MCP server for accelerated workflows. It combines cross-browser E2E automation, accessibility snapshots, and screenshot-based visual regression to catch UI regressions early. Use it to validate responsive layouts, automate user flows, and capture reproducible visual evidence for bugs or reviews.
How this skill works
The skill drives Chromium, Firefox, and WebKit via Playwright APIs exposed through an MCP server. It navigates pages, captures accessibility snapshots, and takes viewport, full-page, or element screenshots. Screenshots can be compared against baselines while network, console, and DOM interactions are inspected, manipulated, and scripted for reliable test automation.
When to use it
- Run end-to-end tests across Chromium, Firefox, and WebKit
- Detect visual regressions after UI changes or deployments
- Validate responsive and cross-viewport layouts
- Automate multi-step user workflows and form submissions
- Capture screenshots for bug reports, documentation, or design reviews
Best practices
- Always wait for page stability (network idle or specific text/elements) before taking screenshots
- Use accessibility snapshots for reliable element references instead of brittle selectors
- Store descriptive, timestamped filenames and maintain baseline images for comparisons
- Prefer PNG for UI comparisons and JPEG only for photographic content
- Resize viewport explicitly for responsive checks and test common device sizes
Example use cases
- Baseline visual snapshot of a landing page, then compare after a code change
- Automated form-fill and submission test that captures success and error states
- Cross-browser smoke tests that gather console errors and network requests
- Element-level screenshot tests for critical components (header, nav, checkout button)
- Drag-and-drop workflow validation for kanban-style UIs with post-action screenshots
FAQ
Use browser_snapshot to capture the accessibility tree and use element refs from that snapshot. Accessibility refs are more stable than visual selectors.
When should I take full-page vs element screenshots?
Use full-page screenshots for documentation or broad visual regressions; use element screenshots to focus comparisons on critical UI parts and reduce noise.