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:
maguire-arman 2025-04-08 10:56:03 -04:00
parent dacacda7a6
commit b5102ce229
2 changed files with 8 additions and 1 deletions

View file

@ -5,10 +5,14 @@
NODE_ENV="qa"
# Base URLs by environment (uncomment the one you need)
# qa
BASE_URL="https://www-qa2.safelite.com/"
# sys
# 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/?&experiments=LeadGenHeritage=LeadGenHeritageExp_V3=LeadGenHeritageTestV3=true"
# dev with leadgen
# BASE_URL="https://www-dev2.safelite.com/?&experiments=LeadGenHeritage=LeadGenHeritageExp_V3=LeadGenHeritageTestV3=true"
# API endpoints
CCIS_API_URL="https://api.test.belronus.io"

View file

@ -186,6 +186,9 @@ npm install
npx playwright install
### Run Tests with script
npm run test:playwright
### Install SauceLabs CLI
npm install saucectl