Test automation hackathon exercise from applitools. This project contains tests written in a tradditional approach using Cypress and a visual testing alternative using applitools/eyes-cypress.
This section provides a high-level requirement & quick start guide.
- Nodejs
- In order to use applitools you need a valid API_KEY -- export APPLITOOLS_API_KEY= {yourAPIKey} -- set APPLITOOLS_API_KEY= {yourAPIKey}
- Make sure all the prerequisites are installed.
- Fork this repository.
- Clone your forked repository, ie.
git clone https://github.com/<your-username>/hackathon-applitools
- Run
npm install
There are 4 different commands to allow you to run different tests configurations.
npm run cypress
When running traditional test specs, screenshots and video captures are available at cypress/screenshots and cypress/videos, in case a test fails.
npm run hackatonV1-traditional
npm run hackatonV2-traditional
npm run hackatonV1-visual
npm run hackatonV2-visual
Contains test files that were built to exercise the demo app using the traditional approach and the visual AI.
Helper functions that allow us to write easier to read tests. Functions are used by both traditional and visual test specs. Each file contains functions and checks to iterate with elements from the page in that given scope. Login-page focuses on the login form. Dashboard-page focuses on the features available once user is logged in.