eatmoresushi
MCP Servereatmoresushipublic

playwright mcp demo

使用 Playwright 和 TypeScript 编写的电影应用自动化测试项目。

Repository Info

1
Stars
0
Forks
1
Watchers
0
Issues
TypeScript
Language
-
License

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

  1. Install dependencies:
npm install
  1. 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 application
  • utils/: Contains helper functions and common utilities
  • fixtures/: Contains test fixtures and setup code
  • data/: Contains test data and constants
  • specs/: Contains the actual test files

Best Practices

  1. Use Page Object Model for better maintainability
  2. Keep tests independent and isolated
  3. Use meaningful names for test cases
  4. Maintain test data separately
  5. Use fixtures for common setup
  6. Follow AAA pattern (Arrange, Act, Assert)

Quick Start

1

Clone the repository

git clone https://github.com/eatmoresushi/playwright-mcp-demo
2

Install dependencies

cd playwright-mcp-demo
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownereatmoresushi
Repoplaywright-mcp-demo
LanguageTypeScript
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation