Ui Testing

In this lesson, we'll test our list ticket endpoint through the user interface.

Setting Up the Environment

Before testing through the UI, we need to ensure our application is running correctly:

  1. Start by building the backend with Maven:
mvn clean compile
  1. Run the Spring Boot application.

Testing Through the Browser

Let's walk through the testing process in the browser:

  1. Open your application's UI in your browser.

  2. Log in using an attendee account that has previously purchased tickets.

  3. Navigate to the dashboard, which should automatically redirect to the list tickets page.

Inspecting the Network Calls

Using the browser's developer tools, we can examine the API calls being made:

  1. Open the Network tab in your browser's developer tools.

  2. Refresh the page to see the network requests.

  3. Look for calls to /api/v1/tickets which should include:

  • Page information in the request
  • Response containing ticket id, status, and ticketType

Summary

  • Tested the list ticket endpoint using the user interface
© 2026 Devtiro Ltd. All rights reserved