This project test automation framework for www.saucedemo.com. SauceDemo is a sample website built by SauceLabs that allows users to practice browser automation.
Use the package manager npm nodejs to install the framework and dependencies
npm i
npm run test // Run tests with Cypress UI
npm run testcli // Run tests with Cypress in headless mode with Chrome
After run npm run test or npm run testcli go to /reports folder and open index.html file
After run the reporter command go to /reports folder and open index.html file
After run finish go to artifacts and download the reports file, unzip the file and open index.html file
Methods and selectors are on support/ folder and can be accesable by any file, there are one file for each page (The file should contains selectors and commands/methods) (Pages files)
Commands.js file is a general file where you can add the general commands and selectors for all the project. (like base commands/methods)
The implementation of logic is on cypress/e2e/cucumberStepsDef/.js, where we call the commands/methods to implement on each feature file.
The feature file are in cypress/e2e/.feature cypresscontains the Gherkin steps tests.
This project is licensed under the terms of the MIT license.