This repository contains automated tests for an e-commerce user flow in Amazon.com
These UI tests are developed with Cypress
The e-commerce user flow I chose is: Adding a birthday eGift card to the cart
- Navigate to amazon.com
- Click the Gift option in the upper menu
- Select Birthday
- Select the first egift card option shown
- Customize your eGift card
- The selected product should be in the cart
You will need to install NPM. Refer to the official NPM documentation for installation instructions:
https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
Before running the application we need to install all the dependencies. You can do this with the following command (execute it from the root directory of this application):
npm install
Tests will not open Chrome directly and will display tests resuts in the console.
After the execution there will be screenshots in the screenshots directory and a video of the execution in the "video" folder
npx cypress run
Tests will be executed in Cypress Test Runner which is a GUI used to execute the tests. Double click in the Amazon.spec file fot the tests to start. You will see real-time execution of the tests in the available browsers
npx cypress open