Cypress Continous Integration & Continous Development setup sandbox to be used for ref into the implementation of other repos
- Be sure to have at Nodejs v 16+
After cloning the repo 'see cheatsheet for ref'(https://education.github.com/git-cheat-sheet-education.pdf)
Navigate to the root folder -> Run the command 'npm install'
This may take some time!!
To run and execute individual test, you can do so by opening cypress
open Cypress Test Runner
'npx cypress open'
below command will open using Staging configurations
'npx cypress open --config-file staging-config.json --env configFile=staging'
There are 3 different testing area/environments
For local testing, it is best to do your test while using cypress test runner. In order to ensure cypress works with your local application, you will have to align the following configurations, that exist in cypress.json file.
"baseUrl":"https://<localhost+port for zenledger main app>/",
"landUrl":"https://<localhost+port for zenledger marketing app>/"
by default, when running cypress open command, it defaults to cypress.json config file or you could just run the other command mentioned above, to get the same result.
FOR DEV - If you just want to run the test after doing the above modifications, you can simply run the command below
'npm run e2eLocal'
Configurations already done (or will be done), you just need to run command below
'npm run e2eStaging'
Configurations already done (or will be done), you just need to run command below
'npm run e2eProd'
Note that this type of testing, will be pushing results to Cypress Dashboard
QA Team!!
Zenledger owns all rights to this code