above is a sample badge
This directory contains the UI Tests for the front-end projects, these tests are written in nodejs using mocha test framework, cypress, and Allure for reporting.
- Code should be clean and kept to the same standard as production code - make sure unused variables and methods are removed, code is correctly formatted, with no random newlines and whitespaces. Where possible node js style guidelines should be followed.
- I recommend using Visual Studio Code and installing the eslintrc extension. Warnings must not be ignored.
- Please eslint plugin.
You should have Node.js installed. If you don't have Node installed, I recommend installing NVM to assist managing multiple active Node.js versions. My recommended version is 10+
.
Once node is installed, execute:
npm ci
npm test
By default tests are executed using a Chrome browser.
To run tests in headless mode:
npm run test -- --browser electron
To run tests in Chrome browser:
npm run test
npm run report
Please use the Jenkins File to configure the jenkins pipeline to run the test