For installing the cypress testing tool is needed to have:
- node.js installed
- npm or yarn (npm preferred)
- flightctl installed in openshift deployment (no local testing, only on cluster)
install with:
cd /yourrepopath/flightctl/test/e2e/cypress/
npm install cypress --save-dev
To run the app in cypress folder you need to run:
export OPENSHIFT_PASSWORD="your user password"
export OPENSHIFT_USERNAME="username"
export OPENSHIFT_AUTH="openshift auth url"
export OPENSHIFT_HOST="openshift console url"
npx cypress open
To load on GUI mode.
If you want to load automaticly you need to run this command
export OPENSHIFT_PASSWORD="your user password"
export OPENSHIFT_USERNAME="username"
export OPENSHIFT_AUTH="openshift auth url"
export OPENSHIFT_HOST="openshift console url"
cypress run --browser chrome
This will run e2e testing on chrome browser for firefox use:
cypress run --browser firefox