The Ultimate UI/UX Testing Suite with MCP Integration
Transform your testing workflow with AI-powered automation, comprehensive logging, and seamless MCP integration.
Feature | Traditional Testing | Our Solution |
---|---|---|
Screenshots | Last 3 steps only | π― 20+ configurable buffers |
Debug Info | Basic logs | π Performance metrics + Network analysis |
Integration | Manual setup | π€ MCP-native with Claude Code/Cursor |
Artifacts | File system only | π¦ Streaming + Export + Caching |
Dependencies | Multiple APIs | π« Zero external dependencies |
# 1. Clone & Build
git clone https://github.com/sadiuysal/flow-tester.git
cd flow-tester
docker build -t flow-tester-agent:latest flow_tester_agent/
# 2. Configure MCP (copy templates)
cp .cursor/mcp.json.template .cursor/mcp.json
cp .mcp.json.template .mcp.json
cp .claude/settings.local.json.template .claude/settings.local.json
# 3. Test Integration
./test-mcp.sh
π That's it! Restart your editor and access 12 powerful MCP tools.
execute_enhanced_ui_flow
- Run comprehensive UI flows with 20+ screenshot bufferscreate_flow_template
- Generate templates for login, ecommerce, formsvalidate_flow_definition
- Validate flows before execution
get_artifacts
- Retrieve traces, videos, screenshots with metadatalist_artifacts
- Filter and paginate through artifactsexport_artifacts
- Export in ZIP, JSON, HTML formatsstream_artifact
- Efficient streaming for large files
get_execution_logs
- Detailed step-by-step execution logsget_debug_context
- Performance metrics, element states, network dataget_cache_stats
- Monitor caching performancecleanup_artifacts
- Intelligent retention policies
π¨βοΏ½οΏ½ Developers | π§ͺ QA Engineers | π DevOps Teams | π€ AI Enthusiasts |
---|---|---|---|
Automated testing in CI/CD | Complex user flow validation | Infrastructure testing | MCP integration |
Performance monitoring | Visual regression testing | Cross-browser testing | AI-powered workflows |
Debug information | Artifact management | Scalable testing | Claude Code integration |
// Traditional: Only last 3 screenshots
// Our Solution: Configurable 20+ screenshots with metadata
const { snap } = withScreenRing(25); // Customize buffer size
await snap(page, 'user-login-attempt');
await snap(page, 'form-validation-error');
await snap(page, 'success-state');
// ... 22 more screenshots available!
- Performance Metrics: Core Web Vitals, load times, memory usage
- Element States: Visibility, attributes, dimensions, position tracking
- Network Analysis: Request/response patterns, error detection
- Memory Monitoring: Usage patterns and optimization insights
- Zero Setup: Works immediately with Claude Code, Cursor, VS Code
- Real-time Access: Direct artifact access without file system mounting
- Streaming Support: Efficient handling of large artifacts
- Intelligent Caching: Configurable retention and compression
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β MCP Client (Claude/Cursor) β
βββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββ
β Playwright Flow Tester Agent β
β βββββββββββββββββββ βββββββββββββββββββ ββββββββββββββββ β
β β Enhanced β β Artifact β β MCP β β
β β Logging β β Manager β β Server β β
β β (20+ buffers) β β (Streaming) β β (12 tools) β β
β βββββββββββββββββββ βββββββββββββββββββ ββββββββββββββββ β
βββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββ
β Playwright Engine β
β βββββββββββββββ βββββββββββββββ βββββββββββββββββββββββ β
β β Chromium β β Firefox β β WebKit β β
β βββββββββββββββ βββββββββββββββ βββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Resource | Description | Link |
---|---|---|
π Quick Start | Get running in 2 minutes | SETUP.md |
π Usage Guide | Comprehensive API reference | USAGE.md |
π Security Audit | Complete security analysis | SECURITY_AUDIT.md |
π¨βπ» Development | Contributing guidelines | CLAUDE.md |
// Test complete purchase flow with enhanced logging
await execute_enhanced_ui_flow({
name: "purchase-flow",
actions: [
{ type: "navigate", url: "/products" },
{ type: "click", selector: "[data-testid='add-to-cart']" },
{ type: "navigate", url: "/checkout" },
{ type: "fill", selector: "#email", value: "test@example.com" },
{ type: "click", selector: "[data-testid='complete-purchase']" }
],
enhanced_logging: { screenshot_buffer_size: 25 }
});
// Comprehensive form testing with debug context
await execute_enhanced_ui_flow({
name: "registration-form",
actions: [
{ type: "navigate", url: "/register" },
{ type: "fill", selector: "#username", value: "testuser" },
{ type: "fill", selector: "#email", value: "invalid-email" },
{ type: "click", selector: "#submit" }
],
enhanced_logging: {
collect_performance_metrics: true,
collect_element_states: true
}
});
- β‘ Fast Execution: Optimized Playwright workflows
- π Parallel Testing: Support for multiple concurrent flows
- πΎ Smart Caching: Configurable artifact retention
- π Cross-Platform: Works on Windows, macOS, Linux
- π³ Docker Ready: Consistent environment across deployments
- π Comprehensive Docs: Setup guides, examples, troubleshooting
- π§ Active Development: Regular updates and improvements
- π Issue Tracking: GitHub issues for bug reports and feature requests
- π‘ Examples: Real-world use cases and templates
- π Security Focus: Regular security audits and updates
Metric | Value | Status |
---|---|---|
MCP Tools | 12 | β Complete |
Screenshot Buffers | 20+ | β Configurable |
Browser Support | 3 | β Chromium, Firefox, WebKit |
Artifact Formats | 4 | β ZIP, JSON, HTML, Streaming |
Dependencies | 0 | β Zero external APIs |
- π Quick Start Guide - Get running in 2 minutes
- π Usage Examples - Learn the API
- π§ Configuration - Set up MCP integration
- π§ͺ Test Examples - See real-world usage
If Playwright Flow Tester helps you build better software, please give us a β star! It helps with visibility and motivates us to keep improving.
MIT License - see LICENSE file for details.
- Playwright - The amazing browser automation framework
- Model Context Protocol - Seamless AI integration
- FastMCP - Python MCP server framework
- Community Contributors - Your feedback and contributions
π Built with β€οΈ for developers who demand excellence in testing