Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 962 Bytes

File metadata and controls

44 lines (32 loc) · 962 Bytes

About

This repository contains some example tests that demo Playwright's capabilities/features.

These demo tests include:

  • Sample examples generated by Playwright
  • Device simulation (Enable one of the mobile viewports from playwright.config.ts file)
  • Context isolation
  • Reusable State
  • API Testing
  • Intercept network requests
  • Geo-location simulation
  • Accessibility testing
  • Visual regression testing (A local static web site will automatically be served at http://localhost:3000, see playwright.config.ts file)
  • Fixture use example
  • Page Performance testing using Google Lighthouse

Usage

  1. Download the zip file or clone this repository.
  2. Change the directory to PlaywrightFeaturesDemo.
cd PlaywrightFeaturesDemo
  1. Install dependencies.
npm install
  1. Install browsers.
npx playwright install
  1. Run tests.
npx playwright test