|
Post by mittu2222 on Dec 19, 2023 3:27:38 GMT -6
Series, you will add another layer of complexity to this application. This article will explore a monorepo containing the same Express API and tests from the previous articles along with a React application that consumes that API. The goal of this tutorial will be to write end-to-end tests that make sure the interactions a user will make in your application are working correctly. What is end-to-end testing? End-to-end testing is a broad methodology of testing that focuses on emulating user. Interactions within an appl photo editing servies cation to ensure they work correctly. While the tests in the previous parts of this series focused on verifying the individual building blocks of the application work properly, end-to-end tests ensure that the user's experience of your application is what you would expect. As an example, end-to-end tests might check for things like the following: If a user navigates to the home page while not signed in, will they be redirected to the login page. via the UI, will its HTML element disappear? Can a user submit the login form without filling in the email field? What makes end-to-end testing so useful is that it not only verifies the behavior of a specific part of your technology stack but also ensures all of the pieces are working together as expected. Rather than writing tests specifically against the frontend client or the backend API, these tests utilize both and act as if the test runner was a user. With this.
|
|