There are two types of tests commonly practiced for web applications: unit testing and end-to-end testing. You might have heard a lot about unit testing and have done some (or loads) in the past. Unit testing is used to test the small and individual parts of your app, while in contrast, end-to-end testing is to test the overall functions of your app. End-to-end testing involves ensuring the integrated components of an app function as expected. In other words, the entire app is tested in a real-world scenario similar to how a real user would interact with your app. For example, the simplified end-to-end testing of your user login page might involve the following:
- Load the login page.
- Provide valid details to the inputs in the login form.
- Click on the Submit button.
- Log in to the page successfully and see a greeting message.
- Log out of the system.
What about unit testing? Unit testing runs fast and allows us to precisely identify exact problems...