This repository contains E2E tests using Cypress for the web application SauceDemo.
- Install Node.js and npm (Node Package Manager).
- Clone the repository:
git clone https://github.com/andresgranizo/SaucedemoTest.git
- Install Dependencies
- npm install
- npm install cypress --save-dev
Local Execution
- npx cypress open
- Start E2E testing in Chrome
- Run tests (spec.cy.js)
-
Add products to cart:
- Navigate to the product page.
- Add the product to the cart.
-
Navigate to the cart page.
- Verify that the added products are present.
-
Place order:
- Verify the order confirmation message.