- This is complete optimise framework using BDD approach and effectively demoing use of applitools libs for visual AI tests, along with other functional actions.
Framework is based on WebDriverIO and Cucumber
Same webdriverio and cucumber framework is used, with addition of Applitools,for visual assertions instead of functional assertions.
- node >= 10.15.x - how to install Node
Install the dependencies:
npm install
Run tests:
npm run v1-traditional-tests
npm run v2-traditional-tests
npm run v1-visualAI-tests
npm run v2-visualAI-tests
- After run is complete, the cucumber html report will be opened in browser
Uses BDD & Page Object Model
- Feature Files are added under /tests/features directory
- Step Definations for features are added under /tests/steps directory
- Page classes are added under /tests/pages directory
- Data like element identifiers are added under /tests/data directory
- Eslint and Prettier are used for maintaining common coding and styling standards
- Husky is used to make sure before commit code format rules are intact
To check for any code standard violations:
npm run check-code
To auto fix the formatting of code:
npm run format-code