This projects aims to introduce developers (QA, Frontend, etc) to the concepts of end-to-end (E2E) tests and how these could be written in order to validate a web application on multiple fronts (backend and frontend services) and fully integrated against a real environment.
We will create tests for two different E2E layers:
- API - We will use EVA, a service that is available in the internet and allow us to verify if an e-mail has a valid syntax.
- UI - We will use a simple todo-list application that was bootstrapped with Create React App.
git pull https://github.com/feedzai/introduction-to-e2e-testing-with-cypress.git
cd introduction-to-e2e-testing-with-cypress
nvm nvm install 14.19
nvm use 14.19
npm install
npm run start
Open the app to view it in your browser.
npm run test
Use an IDE of your preference (we like VSCode, but you do you) to modify those files during the workshop in order to complete the needed tasks.
There's already a database available for you to try out this simple demo app. However, if you still want to setup your own, follow the steps in this video order to do so.
By following the steps on this section of the tutorial, you'll arrive at a point where Firebase will present you an object with your app's token configurations. Copy those, and replace the one's that are on the src/firebase.js
file.
const database = fb.initializeApp({
apiKey: "replace-here",
authDomain: "replace-here",
databaseURL: "replace-here",
projectId: "replace-here",
storageBucket: "replace-here",
messagingSenderId: "replace-here",
appId: "replace-here",
});