In Chapter 8, Creating the Application Scaffold - Taking off Like a Rocket, we added the build process of the frontend into Maven's build life cycle and added the executing of E2E tests in Maven's integration-test phase. However, as shown in the flowchart earlier in this chapter, we will need to execute E2E tests once the application is deployed to the staging environment. In this section, we will refactor our build process. Before we jump into that, let's review different scenarios in which we need to execute E2E tests.