Add an NPM script to run the Playwright API Core Tests (#35283)

* Added script for running Playwright API Core Tests

* Added changelog
This commit is contained in:
Greg 2022-10-25 04:07:13 -06:00 committed by GitHub
parent 197c43e557
commit 43eeb0c997
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: add
Added npm script for Playwright API Core Tests

View File

@ -32,6 +32,7 @@
"env:dev": "pnpm wp-env start",
"env:test": "pnpm run env:dev && ./tests/e2e-pw/bin/test-env-setup.sh",
"e2e-pw": "USE_WP_ENV=1 pnpm playwright test --config=tests/e2e-pw/playwright.config.js",
"test:api-pw": "USE_WP_ENV=1 pnpm playwright test --config=tests/api-core-tests/playwright.config.js",
"env:test:cot": "pnpm run env:dev && ./tests/e2e-pw/bin/test-env-setup.sh --cot",
"env:performance-init": "./tests/performance/bin/init-sample-products.sh",
"env:down": "pnpm wp-env stop",