Skip to content

mdziegielewska/Automation-Cypress

Repository files navigation

Cypress Automation Tests for Magento Sample Store

Project Overview

This repository contains Cypress automation tests written in TypeScript to automate functionalities on the Magento Sample Store (https://magento.softwaretestingboard.com/).

Getting Started

Before you begin, ensure you have the following installed:

  • Node.js (LTS version recommended)
  • npm (comes with Node.js)
  1. Clone the repository:

    git clone https://github.com/mdziegielewska/Automation-Cypress.git
    cd Automation-Cypress
  2. Install dependencies:

    npm install

    Note: npm install ci is great for CI/CD environments as it uses package-lock.json, but npm install is generally sufficient for initial local setup and will create/update the lock file if needed.

Running Tests

You have a few options for running the tests:

  1. Run all tests in headless mode (recommended for CI/CD):

    npx cypress run

    This command executes all tests in a headless browser and generates a report.

  2. Open the Cypress Test Runner (interactive mode):

    npx cypress open

    This command opens the Cypress Test Runner GUI, allowing you to select and run specific tests, debug them, and see the application in real-time as tests execute.

Technologies Used

  • Cypress ^13.13.x – Fast, easy, and reliable testing for anything that runs in a browser.
  • TypeScript ^5.x.x – A typed superset of JavaScript that compiles to plain JavaScript.

Test Coverages

  • Main Page
    • Menu Navigation
    • Search Functionality
    • Widgets Display
    • Hot Sellers Section
    • Footer Links and Content
  • Authorization
    • User Registration
    • User Login
      • Forgotten Password Flow
  • Categories
    • Product Listings
    • Product Filters
    • Product Comparison
  • PDP (Product Detail Page)
    • Product Information Display
    • Product Reviews
    • Related Products Section
  • Transaction Path
    • Mini Cart Functionality
    • Shopping Cart Page
    • Checkout Process
      • Checkout with Multiple Addresses
  • My Account (Planned/In Progress)
    • Account Information Management
    • Order History
    • Address Book Management
    • Wishlist Management
    • Product Reviews Submission

Future work

  • Extend test coverage with new scenarios
  • Refactor existing tests and explore strategies for faster execution times
  • Expand test suite to include testing on a range of screen sizes, especially mobile devices

About

Comprehensive automation coverage for Magento e-commerce platform using Cypress and TypeScript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published