Skip to content

anu-01/playwright-ts-poc

Repository files navigation

🎭 Playwright End-to-End Testing Framework (TypeScript)

Playwright is a modern, open-source end-to-end testing and automation framework for web applications.
It enables testing across Chromium, Firefox, and WebKit using a single, unified API — designed to be evergreen, capable, reliable, and fast.

This repository (playwright-ts-poc) demonstrates how to build a scalable and maintainable UI + API test automation framework in TypeScript, with integration to Azure Playwright Workspaces for cloud-scale test execution.


✨ Key Features


🧰 Getting Started

✅ Prerequisites


⚙️ Setup Instructions

# 1. Clone this repository
git clone https://github.com/anu-01/playwright-ts-poc.git
cd playwright-ts-poc

# 2. Install dependencies
npm install

# 3. Run tests locally
npx playwright test

# 4. Generate test report
npx playwright show-report

🧪 Writing Tests

  • Add new test files under: web/tests/.spec.ts Example: web/tests/cart.spec.ts

  • Add or modify Page Object files under: web/pages/.ts Example: web/pages/cartPage.ts

Each page should define selectors and reusable methods that represent user interactions.


🧠 What are Playwright Workspaces?

Playwright Workspaces is a fully managed Azure service for end-to-end web testing.
It allows you to:

  • ⚡ Run tests in parallel on cloud-hosted browsers (Windows & Linux)
  • 🌍 Test across Chromium, Firefox, and WebKit using your existing test code
  • 🔒 Securely test both public and private apps — no inbound firewall rules needed
  • 🔁 Integrate seamlessly with GitHub Actions or Azure DevOps for CI/CD automation
  • 💰 Start free — Playwright Workspaces includes a 30-day free trial for new Azure users

For setup instructions, see the Setup Guide for Playwright Workspaces.


About

POC framework for Playwright test automation using POM and all the best practices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors