Adds script to run Playwright tests
Adds a script to the `package.json` file for running Playwright tests. Updates the `.env.dev` file to set the base URL for the QA environment.
This commit is contained in:
parent
dacacda7a6
commit
b5102ce229
2 changed files with 8 additions and 1 deletions
|
|
@ -5,10 +5,14 @@
|
||||||
NODE_ENV="qa"
|
NODE_ENV="qa"
|
||||||
|
|
||||||
# Base URLs by environment (uncomment the one you need)
|
# Base URLs by environment (uncomment the one you need)
|
||||||
|
# qa
|
||||||
BASE_URL="https://www-qa2.safelite.com/"
|
BASE_URL="https://www-qa2.safelite.com/"
|
||||||
|
# sys
|
||||||
# BASE_URL="https://www-test2.safelite.com/fmg/?fmgPage=vehicle"
|
# BASE_URL="https://www-test2.safelite.com/fmg/?fmgPage=vehicle"
|
||||||
|
# dev
|
||||||
# BASE_URL="https://www-dev2.safelite.com/"
|
# BASE_URL="https://www-dev2.safelite.com/"
|
||||||
# BASE_URL="https://www-dev2.safelite.com/?&experiments=LeadGenHeritage=LeadGenHeritageExp_V3=LeadGenHeritageTestV3=true"
|
# dev with leadgen
|
||||||
|
# BASE_URL="https://www-dev2.safelite.com/?&experiments=LeadGenHeritage=LeadGenHeritageExp_V3=LeadGenHeritageTestV3=true"
|
||||||
|
|
||||||
# API endpoints
|
# API endpoints
|
||||||
CCIS_API_URL="https://api.test.belronus.io"
|
CCIS_API_URL="https://api.test.belronus.io"
|
||||||
|
|
|
||||||
|
|
@ -186,6 +186,9 @@ npm install
|
||||||
|
|
||||||
npx playwright install
|
npx playwright install
|
||||||
|
|
||||||
|
### Run Tests with script
|
||||||
|
npm run test:playwright
|
||||||
|
|
||||||
### Install SauceLabs CLI
|
### Install SauceLabs CLI
|
||||||
npm install saucectl
|
npm install saucectl
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue