Cypress-Automation-Project-Swag-Labs-POM-Allure-Reports-CI-CD

Cypress GitHub Actions JavaScript

πŸ§ͺ Cypress Swag Labs Test Automation Project

Automated end-to-end testing project using Cypress for the Swag Labs demo application, implementing POM, CI/CD, and Allure reporting.

βΈ»

πŸš€ Project Overview

This project includes automated UI tests for the Swag Labs website using: β€’ Cypress β€’ Page Object Model (POM) β€’ GitHub Actions (CI/CD) β€’ Allure Reports β€’ Video recording on test failure πŸŽ₯

βΈ»

πŸ“Œ Highlights

βΈ»

🧰 Tech Stack β€’ Cypress β€’ JavaScript β€’ Allure Reporter β€’ GitHub Actions

βΈ»

πŸ“‚ Project Structure

cypress/ β”œβ”€β”€ e2e/ β”‚ └── swaglabs.cy.js β”œβ”€β”€ pages/ β”‚ β”œβ”€β”€ loginPage.js β”‚ β”œβ”€β”€ productsPage.js β”‚ └── checkoutPage.js β”œβ”€β”€ support/ β”‚ └── e2e.js ▢️ How to Run Tests

  1. Install dependencies:

npm install

  1. Run Cypress (UI mode): npx cypress open

  2. Run Cypress (headless): npx cypress run

πŸ“Š Allure Report

Generate and open Allure report: npx allure generate allure-results –clean npx allure open

πŸ“Š Allure Report Preview

Allure Report

🌐 Live Allure Report

πŸ”— Click here to view report

βΈ»

πŸŽ₯ Test Evidence

β€’ Videos are automatically recorded when tests fail β€’ Videos are attached inside Allure reports

βΈ»

βš™οΈ CI/CD

Tests run automatically using GitHub Actions on every push.

βΈ»

πŸ“ Test Cases

Manual test cases are documented here:

πŸ“„ Download Test Cases

βΈ»

βœ… Test Scenarios

β€’ Login with valid credentials β€’ Login with invalid credentials β€’ Add product to cart β€’ Remove product from cart β€’ Verify products are displayed β€’ Complete checkout process

βΈ»

πŸ’‘ Author

Dvealiyah QA Automation Engineer πŸš€