Frontend tests

Definition
Code that tests that the user interface of the application.
Functional tests

How does it work?

For every major interaction with the frontend, you create a script of the interaction: every click, text input and delay. Frontend test suites then run this script to check if it still works.

When should you use it?

When the risk that an error in the frontend occurs is unacceptable.

Problems

  • Frontend tests are much slower than functional tests
  • A change to the user interface may corrupt multiple tests

Links

  • Cypress frontend web application testing platform