1. For all projects:
- Install Node (with npm) (https://nodejs.org)
- Install chrome browser (https://www.google.com/chrome/)
2. For modern test Projects:
- Create Free Applitools account to get an Applitools API KEY (https://auth.applitools.com/users/login)
- Add the Applitools API KEY to Environment variables. (https://applitools.com/tutorials/cypress.html)
- Run the command
npm install
to import dependencies for the project - Next to run the tests
npm run test
- Test results can be found in your Applitools account https://eyes.applitools.com/app/test-results/ (this project includes the tests to create the baseline images)
- run the command
npm install
- to run the tests
npm run test
- test results can be found in your Applitools account https://eyes.applitools.com/app/test-results/ (this project includes the tests to create the checkpoint images)
- run the command
npm install
- to run the tests
npm run test
- test results will be logged in
TraditionalTestV1\Traditional-V1-TestResults.txt
- run the command
npm install
- to run the tests
npm run test
- test results will be logged in
TraditionalTestV2\Traditional-V2-TestResults.txt
- after running
npm install
command, then runnpm run cypress:open
to open the test files in the cypress test runner and manually execute the tests by double clicking onHackathonReporter-v*.spec.js
-
Direct URL to final results: https://eyes.applitools.com/app/test-results/00000251808230371373?accountId=N21qSFxwbU63_711iyOOSA~~&display=collaboration&top=00000251808230371373%282%29
-
Checkpoint tests: https://eyes.applitools.com/app/test-results/00000251808230371373?accountId=N21qSFxwbU63_711iyOOSA~~&display=details&top=00000251808230371373%282%29
- Learn cypress: https://www.linkedin.com/learning/end-to-end-javascript-testing-with-cypress-io
- Applitools eyes for cypress: https://www.npmjs.com/package/@applitools/eyes-cypress
- Cypress ref: https://docs.cypress.io/api/api/table-of-contents.html
- Cypress viewports: https://docs.w3cub.com/cypress/api/commands/viewport/
- Custom function to check element visibility: https://stackoverflow.com/questions/57737783/cypress-how-to-know-if-element-is-visible-or-not-in-using-if-condition
- Reporter other ref: https://gist.github.com/rajaraodv/152da1053ac101736ce22449aa5dee72#
- Hackathon Instructions: https://applitools.com/cross-browser-testing-hackathon-v20-1-instructions