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:
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.
When the above tests are finished, the results are published to GitHub pages:
- testresults.marcusfelling.com/basic
- testresults.marcusfelling.com/todomvc
- testresults.marcusfelling.com/svgomg
- testresults.marcusfelling.com/github-api
- testresults.marcusfelling.com/visual-comparison
- testresults.marcusfelling.com/performance
- testresults.marcusfelling.com/accessibility
- testresults.marcusfelling.com/android
- testresults.marcusfelling.com/electron
- testresults.marcusfelling.com/oauth
- testresults.marcusfelling.com/fixtures
Please open an issue with details.