A project utilizing Playwright for automated browser testing, tailored to the needs of the MCP (Multi-Channel Platform) ecosystem.
playwright-mcp provides a robust framework for end-to-end and integration testing of web applications using Playwright. It is designed to support scalable, maintainable, and secure test automation for MCP-related projects.
- Cross-browser automation (Chromium, Firefox, WebKit)
- Headless and headed execution modes
- Parallel test execution
- Customizable configuration for different environments
- Easy integration with CI/CD pipelines
- Secure handling of test data and credentials
-
Clone the repository:
git clone https://github.com/nodoubtz/playwright-mcp.git cd playwright-mcp
-
Install dependencies:
npm install
-
Install Playwright browsers:
npx playwright install
-
Run all tests:
npx playwright test
-
Run a specific test file:
npx playwright test tests/example.spec.ts
-
Generate test reports:
npx playwright show-report
-
Configure environment variables:
Create a.env
file at the root to securely store credentials and sensitive data.
playwright-mcp/
├── tests/ # Test specifications
├── src/ # Source files/utilities
├── configs/ # Playwright/test config files
├── .github/ # GitHub Actions workflows
├── package.json
├── playwright.config.ts
└── README.md
- Update
playwright.config.ts
to customize browser settings, test retries, timeouts, etc. - Refer to the Playwright Configuration Docs for advanced options.
Contributions are welcome! Please open issues or pull requests for enhancements, bug fixes, or new features.
- Fork the repo and create your branch.
- Make changes with clear commit messages.
- Ensure all tests pass.
- Open a pull request describing your changes.
This project is licensed under the MIT License.
References: