TA

twinklejoshi/ai-agent-playwright-typescript-template

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

33 stars 21 forks Качество 78 Тренд 15Apache-2.0

Production-ready Playwright test automation starter for teams and startups: strict TypeScript, Page Object Model, environment management, interactive runner, custom HTML reporting (with optional JIRA...

Обзор

Production-ready Playwright test automation starter for teams and startups: strict TypeScript, Page Object Model, environment management, interactive runner, custom HTML reporting (with optional JIRA integration), quality tooling, CI/CD patterns, and agentic (MCP-ready) extensibility. Instead of spending days wiring up Playwright from scratch, this template gives you: - Opinionated yet flexible structure - Follows POM design pattern - Unified configuration & environment variable loading - A powerful interactive test runner that composes Playwright commands for you - Rich custom HTML report with JIRA bug creation links & embedded artifacts - Tag‑driven selective execution (regression, smoke, customer, internal) - First‑class logging, helper utilities, and mock data - CI pipeline (Jenkins) example using official Playwright docker image - Playwright Test (@playwright/test) - TypeScript (Strict mode) - Node.

README

Показан фрагмент оригинального README. Открыть оригинал.


Table of Contents

  1. Why This Framework
  2. Features Overview
  3. Tech Stack
  4. Prerequisites
  5. Quick Start
  6. Project Structure
  7. Environments & Configuration
  8. Running Tests (Scripts)
  9. Interactive Custom Test Runner
  10. Tagging Strategy
  11. Page Object Model (POM)
  12. Configuration Hub (configuration.ts)
  13. Custom HTML Reporting
  14. Logging
  15. Code Quality: Prettier / ESLint / Husky
  16. TypeScript Configuration
  17. CI/CD Jenkins Pipeline
  18. Writing & Extending Tests
  19. AI Agent & Playwright MCP Integration
  20. Troubleshooting
  21. Security & Secrets
  22. License
  23. Contributor Details

Why This Framework

Instead of spending days wiring up Playwright from scratch, this template gives you:

  • Opinionated yet flexible structure - Follows POM design pattern
  • Unified configuration & environment variable loading
  • A powerful interactive test runner that composes Playwright commands for you
  • Rich custom HTML report with JIRA bug creation links & embedded artifacts
  • Tag‑driven selective execution (regression, smoke, customer, internal)
  • First‑class logging, helper utilities, and mock data
  • CI pipeline (Jenkins) example using official Playwright docker image

Features Overview

Area Capability
Test Types UI, API (E2E slot reserved for future)
Architecture Page Object Model for UI/API pages
Открыть полный README на GitHub

Установка

npx cross-env NODE_ENV=local playwright test --grep "@smoke"
Новичок в MCP? Начните с руководства на mcpskill.org →