From 6abb88c9eeeda59fba6e1a246b85f28984cb6849 Mon Sep 17 00:00:00 2001 From: Uzaeir Khan Date: Thu, 14 Sep 2023 11:58:55 +0200 Subject: [PATCH] BC-4968 Update README and package.json files --- README.md | 9 ++++++--- package.json | 10 +++++----- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 85cfd280..0c37a3de 100644 --- a/README.md +++ b/README.md @@ -23,9 +23,12 @@ Install or make sure Chrome browser (at least) have it in your development machi 1) Clone the project 2) Duplicate [`template.env.json`](env_variables/template.env.json) file and rename the duplicated file to `local.env.json` in the env_variables folder with credentials available in 1Password. (Remember add all instances as in 1Password we have different vaults available) 3) Execute the following command in terminal `npm install` or `npm i` for installing the required packages -4) Execute the following command in terminal to run the tests in Cypress runner (UI) `npm run cy:open` -5) Execute the following command in terminal to run the tests in headless mode `npm run cy:run` -6) For running specific scenario: Run `npm run tag:only` and set tag `@only` above the scenario you want to run +4) Execute the following command in terminal to run all stable tests in Cypress runner (UI): `npm run cy:open:local` +5) Execute the following command in terminal to run all stable tests in headless mode: `npm run tag:stable:local` +6) For running tests which are stable and running in PR's: Run `npm run tag:stable:pr:local` +7) For running tests which are stable and running in releases: Run `npm run tag:stable:release:local` +8) For running specific scenario: Run `npm run tag:only:local` and set tag `@only` above the scenario you want to run +9) For running all unstable tests: Run `npm run tag:unstable:local` ### Framework Structure diff --git a/package.json b/package.json index 0e76ce08..ee8c3f72 100644 --- a/package.json +++ b/package.json @@ -7,11 +7,11 @@ "pretest": "if exist cypress\\reports; then rmdir /S/Q cypress\\reports; fi;", "generate:report": "node reporter.js", "cy:open:local": "cypress open --browser chrome -e tags='@stable_test',environmentName=local", - "tag:stable:local": "xvfb-run cypress run --browser chrome -e tags='@stable_test',environmentName=local", - "tag:stable:pr:local": "xvfb-run cypress run --browser chrome -e tags='@pr and @stable_test',environmentName=local", - "tag:stable:release:local": "xvfb-run cypress run --browser chrome -e tags='@release and @stable_test',environmentName=local", - "tag:only:local": "xvfb-run cypress run --browser chrome -e tags='@only',environmentName=local", - "tag:unstable:local": "xvfb-run cypress run --browser chrome -e tags='@unstable_test',environmentName=local", + "tag:stable:local": "cypress run --browser chrome -e tags='@stable_test',environmentName=local", + "tag:stable:pr:local": "cypress run --browser chrome -e tags='@pr and @stable_test',environmentName=local", + "tag:stable:release:local": "cypress run --browser chrome -e tags='@release and @stable_test',environmentName=local", + "tag:only:local": "cypress run --browser chrome -e tags='@only',environmentName=local", + "tag:unstable:local": "cypress run --browser chrome -e tags='@unstable_test',environmentName=local", "cy:open:ci": "cypress open --browser chrome -e tags='@stable_test',environmentName=ci", "tag:stable:ci": "xvfb-run cypress run --browser chrome -e tags='@stable_test',environmentName=ci", "tag:stable:pr:ci": "xvfb-run cypress run --browser chrome -e tags='@pr and @stable_test',environmentName=ci",