...

/

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.

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:

  1. The host does not work.
  2. The page does not respond.
  3. One of the input fields is not rendered.
  4. The button is not rendered.
  5. The button does not trigger the correct Redux action.
  6. The AJAX call does not start.
  7. The AJAX call has the wrong request payload.
  8. The API does not work and it does not respond.
  9. The API returns the wrong payload.
  10. The functions that manage the authentication do not perform the expected job.
  11. The user already exists.
  12. Everything is managed correctly but the redirect to the home page does not work.
  13. The home page does not show the “No articles are here” text.
  14. 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:

  1. The button does not trigger the correct Redux action.

  2. 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 ...