This fork is used to show an example of Integration Testing with Cypress.
Follow instructions (here)[https://docs.cypress.io/guides/getting-started/installing-cypress#Opening-Cypress].
or
yarn add cypress --dev
Here we will test Person1 and Person2 exchanging messages through the chatbot. Person1 will send Hello!
and Person2 will respond Coucou!
.
- Setup dependencies
yarn
- Start the app locally (pre-requisite)
yarn start
Note:.env
withSKIP_PREFLIGHT_CHECK=true
was created - Open cypress dashboard
npx cypress open
and run testcypress/integration/sendMessages.spec.js
interactively
or
- Run
yarn cypress:test
This app was built from Ebenezer Don article on RxJS with React Hooks for state management
Link to hosted app: rxjs-react-chat