This repository includes 11 automated test cases written using the Cypress framework and JavaScript. The tests verify the functionality of elements on the main, login, and register pages of the website RealWorld.. These tests ensure that critical elements and features of the website are working as expected.
- Node.js v14 or higher
- npm (Node Package Manager)
- Cypress
- Clone the repository:
git clone https://github.com/haite4/cypress-test-task.git
- Navigate to the project directory:
cd cypress-test-task
- Install dependencies:
npm install cypress --save-dev npm install
-
Run all Cypress tests in headless mode:
npm run cypress:run
-
Run tests with a specific browser:
- For Chrome:
npm run test:chrome
- For Firefox:
npm run test:firefox
- For Edge:
npm run test:edge
- For Chrome:
-
Open Cypress Test Runner for interactive testing:
npm run cypress:open
This command will open the Cypress Test Runner, allowing you to run and debug tests interactively in the Cypress GUI.
-
Run tests for specific pages:
- Login Page Tests:
npm run test:login:run
- Main Page Tests:
npm run test:main:run
- Register Page Tests:
npm run test:register:run
- Login Page Tests: