Skip to content

Latest commit

 

History

History
83 lines (71 loc) · 1.96 KB

README.md

File metadata and controls

83 lines (71 loc) · 1.96 KB

Rentzila Cypress

Introduction

This repository contains automated tests using Cypress, written specifically for the website Rentzila

Requirements

  • Node.js: v20.15.1
  • Dependencies:
    • @faker-js/faker: ^9.0.3
    • dotenv: ^16.4.5
    • tsx: ^4.19.1
    • typescript: ^5.6.3
    • cypress: ^13.15.1

Steps to Install

  1. Install Node.js:

    Node.js

  2. Clone the repository:

    https://github.com/haite4/rentzila-cypress
  3. Navigate to the project directory:

    cd rentzila-cypress
  4. Install dependencies:

    npm install

Steps to Launch

  1. Open cypress app::
    npm run cy:open
  2. Run createUnit tests in headless mode::
    npm run cy:createUnit:headles
  3. Run createUnit tests in headed mode::
    npm run cy:createUnit:headed
  4. Run createUnit tests in firefox browser::
    npm run cy:createUnit:firefox
  5. Run createUnit tests in edge browser::
    npm run cy:createUnit:edge
  6. Run all tests in chrome browser::
    npm run cy:all

Allure Report:

  1. Generate Allure Report:
    npm run allure:generate
  2. Open Allure Report:
    npm run allure:open

Report on CI:

Github Pages allure report

ENV

  • 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