/jobsity-challenge

Primary LanguageJavaScriptMIT LicenseMIT

jobsity-challenge

Action Status

This is a project of integration tests (end-to-end). These tests are developed in JavaScript with Cypress and Cucumber

Index

Features

Requirements

Getting Started

Install the dependencies:

npm install

Running tests

Run e2e tests in headless mode (Electron):

npm run cy:run
Send a contact
    ✓ The system should show a successful message (16103ms)

  Visual regression on homepage
    ✓ The homepage should display visually correct (8634ms)

  Searching products
    ✓ The system should display only products related to the search (4554ms)


  3 passing (29s)


  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        3                                                                                │
  │ Passing:      3                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  1                                                                                │
  │ Video:        false                                                                            │
  │ Duration:     29 seconds                                                                       │
  │ Spec Ran:     features/all.features                                                            │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

Open Cypress and select what test do you want to run and what browser:

npm run cy:open

Report

Run this command to generate the report in the directory ./results/report/index.html:

npm run cy:report:generate

You can see the report on GitHub Pages