This repository contains E2E tests using Cypress for the web application DemoBlaze.
- Install Node.js and npm (Node Package Manager).
- Clone the repository:
git clone https://github.com/andresgranizo/CypressE2E.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.
- Verify that the confirmation message is displayed.
- Verify products in cart.
-
Navigate to the cart page.
- Verify that the added products are present.
-
Place order:
- Fill in the order form.
- Submit the order.
- Verify the order confirmation message.