From b5102ce229ed17c137b6f2771a5dd0336bfb8f19 Mon Sep 17 00:00:00 2001 From: maguire-arman Date: Tue, 8 Apr 2025 10:56:03 -0400 Subject: [PATCH] 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. --- playwright-tests/.env.dev | 6 +++++- playwright-tests/README.md | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/playwright-tests/.env.dev b/playwright-tests/.env.dev index 7fd98618d..47ec8336d 100644 --- a/playwright-tests/.env.dev +++ b/playwright-tests/.env.dev @@ -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" diff --git a/playwright-tests/README.md b/playwright-tests/README.md index 98a580260..3d5ef553b 100644 --- a/playwright-tests/README.md +++ b/playwright-tests/README.md @@ -186,6 +186,9 @@ npm install npx playwright install +### Run Tests with script +npm run test:playwright + ### Install SauceLabs CLI npm install saucectl