Skip to content

Commit

Permalink
BC-4968 Update README and package.json files
Browse files Browse the repository at this point in the history
  • Loading branch information
UzaeirKhan committed Sep 14, 2023
1 parent 3d315d7 commit 6abb88c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6abb88c

Please sign in to comment.