Custom Command

Learn how to write `authentication custom command` for UI integration tests.

Overview

As we have created a custom signup command for the E2E tests, we should also create an authentication command for the UI Integration Tests too. It will be way far simpler because we do not need a real signup/authentication, we just need the front-end to think that it’s authenticated.
We must set the jwt token into the local storage. Let’s write the authenticateIntegration custom command:

authenticateIntegration custom command.

...