woocommerce-paypal-payments/tests/playwright/README.md

16 lines
423 B
Markdown
Raw Normal View History

2023-02-24 15:48:14 +01:00
# Playwright Testing
## Local Environment Variables
Allows using environment variables inside the tests.
- Duplicate `.env.e2e.example` and rename it as `.env.e2e`, set values and add new variables if needed.
2023-02-24 15:48:14 +01:00
## Run Tests
```
$ npx playwright test
$ npx playwright test --grep @ci
2023-02-24 15:48:14 +01:00
$ npx playwright test example.spec.js --headed
$ npx playwright test example.spec.js --debug
$ npx playwright test -g "Test name here"
```