visual-testing

Capture screenshots before and after UI interactions to detect visual regressions.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/abretonc7s/metamask-skills --skill visual-testing-abretonc7s
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: visual-testing
Source: https://github.com/abretonc7s/metamask-skills/tree/main/domains/testing/skills/visual-testing
Command: npx skills add https://github.com/abretonc7s/metamask-skills --skill visual-testing-abretonc7s

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires puppeteer, pixelmatch, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines browser automation by enabling visual regression testing and UI validation to quickly identify unintended visual changes.

Core Features & Use Cases

  • Visual Validation: Capture screenshots before and after UI actions to detect layout or styling regressions.
  • UI Interaction Automation: Perform click, type, and navigation commands across extension and dapp pages.
  • Use Case: Verify that updates to MetaMask's UI do not introduce visual bugs by automatically comparing key screens during development.

Quick Start

Use the visual-testing skill to take a screenshot before changing an extension setting, then perform the interaction, and finally verify by capturing the post-interaction screenshot.

Frequently Asked Questions about visual-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate browser UI validation through visual regression testing?

Automate browser UI validation by taking screenshots before and after interaction sequences, then comparing them to detect visual regressions. This skill uses browser automation libraries and screenshot tools to perform pixel comparisons and validate UI consistency.

How do I detect visual regressions in web extensions and dapp environments?

Detect visual regressions in web extensions and dapps by running interaction sequences and capturing screenshots of key screens. The skill compares pre- and post-interaction screenshots to identify unintended layout or styling changes during development.

Does visual testing work with Puppeteer and Pixelmatch for screenshot comparisons?

Yes, visual testing uses Puppeteer for browser automation and Pixelmatch for screenshot comparisons. These dependencies enable the skill to capture screenshots, execute UI interaction sequences, and perform pixel-level validations to detect visual inconsistencies.

Can I verify MetaMask UI updates do not introduce visual bugs automatically?

Yes, you can verify MetaMask UI updates by automatically comparing key screens during development. The skill captures screenshots before changing extension settings, performs the interaction, and captures post-interaction screenshots to validate visual consistency.

What's the best way to perform click, type, and navigation commands for UI testing?

Perform click, type, and navigation commands for UI testing by using browser automation sequences. The skill automates these interactions across extension and dapp pages, capturing screenshots before and after actions to validate layouts and detect styling regressions.

When do I need visual regression testing for web applications?

You need visual regression testing when updating UI components to ensure changes do not introduce visual bugs. The skill streamlines browser automation by capturing screenshots of key screens and comparing them to quickly identify unintended visual changes during development.