-
Notifications
You must be signed in to change notification settings - Fork 5
Add Visual-Based Tests and Snapshot Testing with Playwright MCP #154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
… MCP Co-authored-by: indcoder <2099300+indcoder@users.noreply.github.com>
Co-authored-by: indcoder <2099300+indcoder@users.noreply.github.com>
…in permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
This PR implements a comprehensive visual regression testing suite using Playwright MCP to prevent UX regressions and catch visual changes early in the development cycle.
🎯 Overview
The implementation provides automated visual testing capabilities that capture screenshots of UI components and compare them against baseline images to detect unintended visual changes.
✨ Key Features
Visual Testing Engine
Playwright MCP Integration
Comprehensive Test Coverage
🏗️ Implementation Details
Project Structure
Usage Examples
Basic Component Testing:
Responsive Testing:
Interaction Workflows:
🔧 Configuration & Setup
Environment Configuration
CI/CD Integration
🚀 Getting Started
Install Playwright browsers:
Run tests locally:
Add new visual tests:
📁 Files Added
🎁 Benefits
✅ Prevent UX Regressions: Automatically catch visual changes before production
✅ Comprehensive Coverage: Test components, layouts, and complete user workflows
✅ Developer Friendly: Simple APIs, clear documentation, easy setup
✅ CI/CD Ready: Automated testing with artifact storage and reporting
✅ Highly Configurable: Adaptable to different environments and requirements
The visual testing suite is now ready to provide confidence in UI stability and prevent accidental UX regressions across the Visage application.
Fixes #153.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
aka.mscurl -I -sSL --retry 5 --retry-delay 2 --connect-timeout 15 REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.