/Demo.Playwright

Repo to demo various testing scenarios with Playwright 🎭, using the official test-runner and scripts authored in TypeScript.

Primary LanguageTypeScript

🎭 Demo.Playwright

This repo is used to demo various testing scenarios with Playwright 🎭, using the official test-runner and scripts authored in TypeScript.

The test.yml GitHub Action workflow is used to:

Run Playwright example tests

basic - basic tests to show interactions, element selectors, assertions, upload files, read a response, mock a response, and page object model (POM).

todomvc - End-to-end tests for ToDoMVC site, hosted at https://demo.playwright.dev/todomvc

svgomg - End-to-end tests for SVGOMG! site, hosted at https://demo.playwright.dev/svgomg

github-api - uses GitHub API to test creation of a new repo, bug, and feature, then deletion of repo.

visual-comparison - visually compares snapshots with golden screenshots and text content for playwright.dev landing page.

performance - web performance tests using resource timing API, DevTools, and lighthouse, run against https://fastestwebsite.net

accessibility - runs accessibility checks against https://www.w3.org

android - runs a basic test using Android's WebView.

electron - runs a basic test for Electron application, controlling main electron process and working with Electron window.

oauth - runs oauth tests for LinkedIn, Facebook, and Google, to login to https://courses.ultimateqa.com/users/sign_in.

fixtures - runs example tests utilizing test and worker fixtures.

Publish each HTML report to their respective directory

When the above tests are finished, the results are published to GitHub pages:

Have a testing scenario you'd like to see included?

Please open an issue with details.