##Cypress Testing##
- System requirements before running the cypress test: -- Node.js 12 or 14 and above
Please follow the instruction to setup node and npm to your local https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
-
install all dependencies from the root directory cd /nal-i5k-tripal-cypress/ npm install
-
and open Cypress GUI cd /nal-i5k-tripal-cypress/cypress
npm run cy:open or npx cypress open
-
Auto_scripts folder carry sanity testing npm cy:open --spec cypress/integration/auto_scripts/content-type/*.spec.js
-
Running from the CLI -- Same as running Cypress GUI but with 'cypress run' command (and any CLI arguments)
npm run cy:run or npx cypress run
- runs all example projects in specific browser -- similar to cypress run --browser npm run cypress:run -- --browser chrome
https://docs.cypress.io/guides/getting-started/installing-cypress
Install Cypress via npm: cd into /nal-i5k-tripal-cypress/ npm install cypress --save-dev