Skip to content

apatelia/PlaywrightFeaturesDemo

Repository files navigation

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

About

Some sample tests for a demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published