Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Latest commit

 

History

History

web

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Structure

All tests are placed under the directory apps, which has the following structure:

  • angular9: Angular application used to run the tests related to the angular components, in project common.
  • react: React application used to run the tests related to the react components, in project common.
  • common: Cypress tests.

Tests

Installation

First, install the dependencies:

yarn
cd apps/angular9
yarn
cd ../react
yarn
cd ../common
yarn

Running

Backend

Access project ../bff-server to run the BFF server. It is required for all tests.

dos2unix tool

This tool helps to prevent the following error: "env: node\r: No such file or directory"

brew install dos2unix

Applications

To test the Angular app after installing it, run the following command to start it:

# angular
cd apps/angular9
dos2unix -F node_modules/.bin/beagle
yarn serve

To test the React app after installing it, run the following command to start it:

# react
cd apps/react
dos2unix -F node_modules/.bin/beagle
yarn start

Tests

# run all tests
yarn test
# run only tests for angular
yarn test:angular:9
# run only tests for react
yarn test:react
# run a specific feature
yarn test:angular:9 TAGS="@pageView"

When running the tests for the first time, it will take a while to check the installation of Cypress.