
playwright mcp demo
使用 Playwright 和 TypeScript 编写的电影应用自动化测试项目。
Repository Info
About This Server
使用 Playwright 和 TypeScript 编写的电影应用自动化测试项目。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Movie App Test Automation
This project contains automated tests for the Movie App using Playwright with TypeScript.
Project Structure
├── tests/
│ ├── pages/ # Page Object Models
│ ├── utils/ # Helper functions and utilities
│ ├── fixtures/ # Test fixtures and setup
│ └── specs/ # Test specifications
├── playwright.config.ts
└── package.json
Setup
- Install dependencies:
npm install
- Install Playwright browsers:
npx playwright install
Running Tests
- Run all tests:
npm test
- Run tests in a specific browser:
npm test -- --project=chromium
- Run tests in debug mode:
npm test -- --debug
Page Object Model
The project follows the Page Object Model pattern where:
pages/: Contains page classes that represent different pages in the applicationutils/: Contains helper functions and common utilitiesfixtures/: Contains test fixtures and setup codedata/: Contains test data and constantsspecs/: Contains the actual test files
Best Practices
- Use Page Object Model for better maintainability
- Keep tests independent and isolated
- Use meaningful names for test cases
- Maintain test data separately
- Use fixtures for common setup
- Follow AAA pattern (Arrange, Act, Assert)
Quick Start
Clone the repository
git clone https://github.com/eatmoresushi/playwright-mcp-demoInstall dependencies
cd playwright-mcp-demo
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.