mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
.. | ||
.gitignore | ||
place-order.spec.js | ||
README.md |
Playwright Testing
Set Environment Variables
Duplicate .env.e2e.example and rename it to .env.e2e
, set the values needed for the tests, like account credentials, card numbers.
Install Playwright dependencies (browsers)
$ yarn ddev:pw-install
Run Tests
$ yarn ddev:pw-tests
You can also choose which tests to run filtering by name
$ yarn ddev:pw-tests --grep "Test name or part of the name"
Or run without the headless mode (show the browser)
$ yarn pw-tests-headed
Or run with the test debugger
$ yarn playwright test --debug
For the headed/debug mode (currently works only outside DDEV) you may need to re-install the deps if you are not on Linux.
$ yarn pw-install
See Playwright docs for more info.