test-browser

Run end-to-end browser tests on routes affected by code changes.

5|Updated Oct 22, 2025
One-click install
npx skills add https://github.com/marchatton/agent-skills --skill test-browser-marchatton
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: test-browser
Source: https://github.com/marchatton/agent-skills/tree/main/.agents/skills/05-review/test-browser
Command: npx skills add https://github.com/marchatton/agent-skills --skill test-browser-marchatton

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of running browser tests on web pages that have been modified by a pull request or branch, ensuring quality and catching regressions before they reach production.

Core Features & Use Cases

  • Automated Browser Testing: Executes end-to-end tests in a real browser environment using the agent-browser CLI.
  • Scope Determination: Automatically identifies affected files and maps them to testable routes based on Git diffs or PR information.
  • Visual Regression & Interaction Testing: Captures snapshots, verifies key elements, and tests critical user interactions.
  • Use Case: After pushing changes to a feature branch, run this Skill to automatically test all user-facing components affected by your code, ensuring a smooth user experience.

Quick Start

Run browser tests for the current branch's changes.

Frequently Asked Questions about test-browser

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

FAQPage Schema
How do I run end-to-end browser tests only on pages affected by my code changes?▼

End-to-end browser tests can target affected pages by identifying changed files from a Git diff, mapping them to routes, and verifying server status before testing. The agent-browser CLI executes these scoped tests with snapshotting and interaction verification.

What is the best way to automate regression testing for a pull request without testing the whole application?▼

Automated regression testing for pull requests is achieved by determining scope through changed files, mapping them to testable routes, and running browser tests exclusively on those affected paths to catch regressions efficiently.

How does automated browser testing handle failures when verifying user interactions?▼

When automated browser testing encounters failures during interaction verification, it handles them by documenting the failure, allowing debugging, creating todos for follow-up, or skipping the test to maintain workflow continuity.

Can I use this browser testing approach if my development environment has no external dependencies?▼

Yes, this browser testing approach requires no external dependencies, relying solely on the agent-browser CLI to execute end-to-end tests, capture snapshots, and verify interactions directly within your local environment.

Why does visual regression testing require mapping changed files to specific routes?▼

Visual regression testing requires mapping changed files to specific routes because the testing scope is determined by Git diffs; this ensures only pages affected by current code changes are snapshotted and verified.

Does automated E2E testing work with server status verification before execution?▼

Automated E2E testing includes server status verification as a prerequisite step; it checks the server availability before attempting to execute browser tests on the mapped routes to ensure valid results.