Welcome to the Playwright MCP Test Automation project! This repository demonstrates advanced API and UI test automation using Playwright with Model Context Protocol (MCP) and custom best practices. It is designed to showcase my expertise for freelance opportunities and client projects.
- API Testing with Playwright: Automated API tests using Playwright's
requestcontext and@playwright/testframework. - UI End-to-End Testing: Robust browser automation for web applications, including navigation, interaction, and validation.
- Async/Await Patterns: Modern, maintainable code using async/await for all test flows.
- Detailed Logging: Useful logs for debugging and traceability.
- Schema Validation: (If applicable) Response schema validation for APIs.
- Organized Structure: Clean separation of test files, contexts, and reports for easy maintenance and scalability.
- Professional Reporting: Integrated Playwright HTML reports for clear test results.
/tests- Contains all API and UI test specs and page objects/contexts- Context and documentation for API and UI flows/playwright-report- Auto-generated HTML reports after test runs/test-results- Raw test result dataplaywright.config.ts- Playwright configuration
- Automate your API and UI testing for faster releases and higher quality
- Integrate Playwright into your CI/CD pipeline
- Write custom, maintainable, and scalable test suites
- Debug and improve your existing Playwright tests
- Generate professional test reports for your team or stakeholders
- Playwright (TypeScript)
- Node.js
- HTML Reporting
- Validate API endpoints (status, body, schema)
- Automate complex user journeys in the browser
- Test authentication, forms, and business logic
- Generate and share detailed test reports