mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
15 lines
381 B
Markdown
15 lines
381 B
Markdown
|
# Playwright Testing
|
||
|
|
||
|
## Local Environment Variables
|
||
|
Allows using environment variables inside the tests.
|
||
|
|
||
|
- Duplicate `.env.sample` and rename it as `.env`, set values and add new variables if needed.
|
||
|
|
||
|
## Run Tests
|
||
|
```
|
||
|
$ npx playwright test
|
||
|
$ npx playwright test example.spec.js --headed
|
||
|
$ npx playwright test example.spec.js --debug
|
||
|
$ npx playwright test -g "Test name here"
|
||
|
```
|