Search⌘ K

Bypassing Login

Explore how to optimize your Cypress testing workflow by creating a custom command to bypass login in your Spring Boot and Thymeleaf application. Learn to automate user authentication quickly, enabling faster and more efficient end-to-end testing of your application's features without repetitive login steps.

We'll cover the following...

There is something mesmerizing about watching Cypress type and click, but using Cypress in this manner for each test Login would be very time-consuming.

Cypress commands

As an alternative, we can write a Cypress command. Cypress commands allow the creation of helper functions we use in tests. This command ...