Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 988 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 988 Bytes

E2E Tests

CI

This repository contains E2E tests using Cypress for the web application SauceDemo.

Prerequisites

  1. Install Node.js and npm (Node Package Manager).

Setup

  1. Clone the repository:
    git clone https://github.com/andresgranizo/SaucedemoTest.git
  2. Install Dependencies
    • npm install
    • npm install cypress --save-dev

Runing Tests

Local Execution

  1. npx cypress open
  2. Start E2E testing in Chrome
  3. Run tests (spec.cy.js)

Test Description

E2E Test: Add Products to Cart and Place Order

  1. Add products to cart:

    • Navigate to the product page.
    • Add the product to the cart.
  2. Navigate to the cart page.

    • Verify that the added products are present.
  3. Place order:

    • Verify the order confirmation message.