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.
Install Node project dependencies:
npm install
Install browser binaries:
npx playwright install
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
An alternative example end-to-end testing setup using the W3C WebDriver standard can be found at blueimp/wdio.
Released under the MIT license.