...
/Main E2E Test Defects: Utility in Case of Failure
Main E2E Test Defects: Utility in Case of Failure
Learn how to handle Cypress test failure.
We'll cover the following...
Utility in case of failure
A written test is useless when it fails. There are many reasons that could cause the signup flow to fail. Some of these include:
- The host does not work.
- The page does not respond.
- One of the input fields is not rendered.
- The button is not rendered.
- The button does not trigger the correct Redux action.
- The AJAX call does not start.
- The AJAX call has the wrong request payload.
- The API does not work and it does not respond.
- The API returns the wrong payload.
- The functions that manage the authentication do not perform the expected job.
- The user already exists.
- Everything is managed correctly but the redirect to the home page does not work.
- The home page does not show the “No articles are here” text.
- The home page shows a slightly different message to the user (ex: “Click on ‘New Post’ to add your first contribution”).
Implementation details errors
Some of the possible errors that can occur at the beginning of the test include:
-
The button does not trigger the correct Redux action.
-
The functions that manage the authentication do not do the expected job.
These errors fall under. “implementation details”. We are testing the whole front-end application from an outer ...