
Skill
visual-regression-testing
perform visual regression testing
Description
Perform visual regression testing with TestMu AI SmartUI using getSmartUIScreenshotInfo, summarizeSmartUIPixelDiff, summarizeSmartUILayoutDiff, summarizeSmartUIDomDiff, analyzeSmartUIHumanDiff, and analyzeSmartUIRun MCP tools. Use for detecting visual changes and UI regressions.
SKILL.md
Visual Regression Testing with SmartUI
When to Use
- Reviewing visual changes between builds
- Investigating pixel, layout, or DOM differences in UI screenshots
- Analyzing a full SmartUI test run for visual regressions
- Understanding what changed visually in your application
MCP Tools Used
getSmartUIScreenshotInfo- Get screenshot metadata and comparison detailsgetSmartUIResources- Fetch comparison resources (baseline vs current)downloadSmartUIDomFiles- Download DOM structure for comparisonsummarizeSmartUIPixelDiff- Analyze pixel-level visual changessummarizeSmartUILayoutDiff- Analyze layout and structural changessummarizeSmartUIDomDiff- Analyze DOM/code-level changesanalyzeSmartUIHumanDiff- Get human-readable visual change descriptionsanalyzeSmartUIRun- Comprehensive analysis of an entire test run
Steps
1. Analyze a Full Test Run
Use analyzeSmartUIRun for a comprehensive overview:
"Analyze SmartUI run for build abc123"
"Show me all visual changes in my latest SmartUI run"
What the tool does:
- Summarizes all screenshots with changes
- Categorizes changes by severity
- Highlights critical visual regressions
2. Inspect Individual Screenshots
Use getSmartUIScreenshotInfo to get details on a specific screenshot:
"Get SmartUI screenshot info for screenshot ID xyz789"
"Show me comparison details for this screenshot"
3. Analyze Specific Diff Types
Choose the right diff type based on what you need:
Pixel Diff — exact visual pixel changes:
"Summarize pixel differences for SmartUI screenshot xyz789"
"Show me pixel-level changes between baseline and current"
Layout Diff — structural/positioning changes:
"Summarize layout differences for SmartUI screenshot xyz789"
"What layout changes happened in this screenshot?"
DOM Diff — code-level changes in the DOM:
"Summarize DOM differences for SmartUI screenshot xyz789"
"What HTML/CSS changes caused the visual diff?"
Human Diff — natural language explanation:
"Give me a human-readable analysis of SmartUI screenshot xyz789"
"Explain what changed visually in this screenshot"
4. Download DOM Files
Use downloadSmartUIDomFiles for deep code-level comparison:
"Download DOM files for SmartUI screenshot xyz789"
"Get baseline and current DOM structures for comparison"
Common Scenarios
Review Full Test Run:
"Analyze my SmartUI run abc123"
→ Returns summary of all visual changes across screenshots
→ Highlights critical regressions vs expected changes
Investigate a Specific Change:
"Get info for SmartUI screenshot xyz789"
"Summarize pixel diff for screenshot xyz789"
"Explain what changed in human terms"
Debug Layout Issues:
"Summarize layout diff for screenshot xyz789"
"Download DOM files for screenshot xyz789"
"What CSS changes caused this layout shift?"
Example Workflow
User: "Review visual changes in my latest SmartUI build"
Steps:
- Run overview:
"Analyze SmartUI run for build abc123" - Identify flagged screenshots with significant changes
- Deep dive:
"Summarize pixel diff for screenshot xyz789" - Understand root cause:
"Summarize DOM diff for screenshot xyz789" - Human summary:
"Give me a human-readable analysis of the changes" - Approve or flag the changes
Quick Tips
- Start with
analyzeSmartUIRunfor a high-level overview of all changes - Use pixel diff for exact visual comparisons
- Use layout diff for structural/positioning changes
- Use DOM diff to understand what code changes caused the visual diff
- Human diff provides natural language explanations of visual changes
- SmartUI caches results for 60 minutes for faster repeated access
More skills from the testmuai-cursor-plugin repository
View all 5 skillsdebug-automation-tests
debug automation test failures
Jul 16AutomationDebuggingQATestingrun-tests-on-hyperexecute
run parallel tests on HyperExecute
Jul 16AutomationCI/CDTestingYAMLscan-and-fix-accessibility
scan and fix web accessibility issues
Jul 16AccessibilityQATestingWCAGupload-and-test-mobile-app
upload and test mobile apps on TestMu AI
Jul 16AppiumAutomationMobileTesting
More from TestMu AI (formerly LambdaTest)
View publisherapi-ai-augmented
design AI-powered API features
agent-skills
Jul 16AgentsAPI DevelopmentLLMMCPapi-analyzer
validate and debug API requests
agent-skills
Jul 16API DevelopmentDebuggingTestingapi-compliance-checker
design regulatory compliant API patterns
agent-skills
Jul 16API DevelopmentComplianceSecurityapi-designer
generate REST API endpoint specifications
agent-skills
Jul 16API DevelopmentArchitectureREST APIapi-documentation
generate professional API documentation
agent-skills
Jul 16API DevelopmentDocumentationTechnical Writingapi-fetcher-specific-domains
provide API endpoint specifications
agent-skills
Jul 16API DevelopmentIntegrationsReference