We’re duplicating a bunch of commands between our new test and the login test and it’s not giving us any more confidence that the application is working properly. So let’s do the same thing we did with registration and make a cy.request command to login with the newly created user to speed up our test and make it more focused.
There's been a small breaking change to Cypress Testing Library that affects the code in this video. Learn more here.