Skip to content

πŸ” End-to-end Cypress automation for Rakuten Coupons using Page Object Model (POM). Includes organized test structure, clear scenarios, and automated UI test flows.

Notifications You must be signed in to change notification settings

nzjahngere/006-Test-Forge

Repository files navigation

πŸ›οΈ Rakuten Coupons Automation Project

Cypress Masai

πŸ“Œ Introduction πŸš€

The project automates end-to-end testing of the Rakuten Coupons platform using Cypress. It focuses on validating critical user flows such as navigation, coupon discovery, cashback, and account management. The goal is to create a modular, maintainable automation suite with reliable execution logs and reports.


πŸ”Ή Project Overview

βœ… End-to-end testing automation using Cypress βœ… UI Testing, Functional Testing, and Negative Scenarios βœ… Page Object Model (POM) for scalable architecture βœ… Generates Mochawesome HTML reports for visual execution insights βœ… CI-ready structure for easy pipeline integration


πŸ“‚ Project Structure

RakutenAutomation/
│── cypress/
β”‚   β”œβ”€β”€ e2e/                  # Test specs
β”‚   β”œβ”€β”€ pages/                # POM class files
β”‚   β”œβ”€β”€ support/              # Commands & configs
β”‚   β”œβ”€β”€ fixtures/             # Test data
β”‚   β”œβ”€β”€ screenshots/          # Captures on failure
β”‚   β”œβ”€β”€ videos/               # Optional video logs
│── mochawesome-report/       # Test execution report
│── cypress.config.js         # Cypress configuration
│── package.json              # Project dependencies
│── README.md                 # Documentation
│── .gitignore

πŸ› οΈ Tech Stack Used

Technology Purpose
JavaScript Core scripting language
Cypress UI and E2E automation framework
Mochawesome Rich HTML report generation
POM Scalable test structure
Node.js / NPM Runtime environment and dependency manager

βš™οΈ Setup & Installation

πŸ”Ή Prerequisites

  • Node.js v16+
  • Git
  • VS Code or preferred IDE
  • Chrome browser (recommended)

πŸ”Ή Clone the Repository

git clone https://github.com/yourusername/rakuten-coupons-automation.git
cd rakuten-coupons-automation

πŸ”Ή Install Dependencies

npm install

πŸš€ Running the Tests

1️⃣ Interactive Mode (GUI)

npx cypress open

2️⃣ CLI Mode (Headless)

npx cypress run

3️⃣ Generate Mochawesome Reports

npx cypress run --reporter mochawesome

πŸ“ Report Path: ./mochawesome-report/mochawesome.html

Open in a browser to view detailed test results.


🧾 Test Coverage Report

Scenario Test Cases Automated Passed Failed Remarks
Homepage Navigation 3 3 1 2 CAPTCHA blocked TC1.1 & 1.2 / Partially covered
Store & Product Browsing 3 1 (Merged 3) 1 0 Fully covered
Coupons & Cashback 3 1 (Merged 3) 0 1 CAPTCHA blocked flow
Cashback Flow 3 1 (Merged 3) 0 1 CAPTCHA blocked automation
Account Management 3 1 (Merged 3) 0 1 CAPTCHA blocked all operations
Total 15 1 (Merged 3) 2 5

🐞 Known Issues & Automation Limitations

❌ CAPTCHA Blocking Automation

  • Issue: reCAPTCHA prevents Cypress from performing key UI flows
  • Effect: Buttons hidden or intercepted
  • Cause: reCAPTCHA's anti-bot system triggers on Cypress automation
  • Status: Tests fail where CAPTCHA is involved; no workaround could be implemented.

🀝 Contributors

Nazish Jehangir β€” Masai School Student Aspiring Software Developer | Passionate about Automation and Quality Engineering

Special thanks to the Masai mentors and instructional team for continuous support and valuable feedback.


πŸ“ƒ License

This project is developed for academic learning and demonstration. Open for use, forking, and improvement with attribution.

About

πŸ” End-to-end Cypress automation for Rakuten Coupons using Page Object Model (POM). Includes organized test structure, clear scenarios, and automated UI test flows.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published