This repository contains automated tests using Cypress, written specifically for the website Rentzila
- Node.js: v20.15.1
- Dependencies:
@faker-js/faker
: ^9.0.3dotenv
: ^16.4.5tsx
: ^4.19.1typescript
: ^5.6.3cypress
: ^13.15.1
-
Install Node.js:
-
Clone the repository:
https://github.com/haite4/rentzila-cypress
-
Navigate to the project directory:
cd rentzila-cypress
-
Install dependencies:
npm install
- Open cypress app::
npm run cy:open
- Run createUnit tests in headless mode::
npm run cy:createUnit:headles
- Run createUnit tests in headed mode::
npm run cy:createUnit:headed
- Run createUnit tests in firefox browser::
npm run cy:createUnit:firefox
- Run createUnit tests in edge browser::
npm run cy:createUnit:edge
- Run all tests in chrome browser::
npm run cy:all
- Generate Allure Report:
npm run allure:generate
- Open Allure Report:
npm run allure:open
- ADMIN_EMAIL: you can get from the project owner
- ADMIN_PASSWORD: you can get from the project owner
- ADMIN_PHONE_NUMBER: you can get from the project owner
- VALID_PHONE_NUMBER: you can take any correct Ukrainian number
- BASE_URL: you can get from the project owner
- USER_EMAIL: You can get after creating an account on rentzila
- USER_PASSWORD: You can get after creating an account on rentzila
- USER_PHONE_NUMBER: You can get after creating an account on rentzila