To test user login we need to have a user to login with. We could seed the database with a user and that may be the right choice for your application. In our case though we’ll just go through the registration process again and then login as the user and make the same assertions we made for registration.

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