Giter Site home page Giter Site logo

amazon_ecomm_flow_tests's Introduction

Ecommerce Flow Test

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

 

Running the tests

 

Requirements

 

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

 

Installing dependencies

 

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  

 

Executing the tests

 

Headless Mode

 

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   

 

Open Mode

 

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  

 

Execution Reports Example:

  Open Execution Report     Run Mode Execution Report  

amazon_ecomm_flow_tests's People

Contributors

alapisco avatar ealapisco avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.