This repository contains Cypress automation tests written in TypeScript to automate functionalities on the Magento Sample Store (https://magento.softwaretestingboard.com/).
Before you begin, ensure you have the following installed:
-
Clone the repository:
git clone https://github.com/mdziegielewska/Automation-Cypress.git cd Automation-Cypress -
Install dependencies:
npm install
Note:
npm install ciis great for CI/CD environments as it usespackage-lock.json, butnpm installis generally sufficient for initial local setup and will create/update the lock file if needed.
You have a few options for running the tests:
-
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.
-
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.
- 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.
- 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
- 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