Playwright example
October 17, 2021 ยท View on GitHub
Example setup for the Playwright end-to-end testing framework.
Includes an example email application with file attachment support and tests to cover its functionality.
Setup
Install Node project dependencies:
npm install
Install browser binaries:
npx playwright install
Usage
Start the example server via Docker:
docker-compose up -d example
Run the tests:
npm test
Run the tests in Docker:
docker-compose run --rm playwright
Stop the example server:
docker-compose down
Show traces for failed tests:
bin/show-trace.sh
Webdriver
An alternative example end-to-end testing setup using the W3C WebDriver standard can be found at blueimp/wdio.
License
Released under the MIT license.