We’re duplicating a lot of logic between our registration and login tests and not getting any additional confidence, so lets reduce the duplicate logic and time in our tests using cy.request to get a user registered rather than clicking through the application to register a new user.

There's been a small breaking change to Cypress Testing Library that affects the code in this video. Learn more here.