Fast and Reliable Test Setup with REST APIs
Signing up and logging in through the UI makes every test slower and more fragile. When the application has an API, the test can create its user with one HTTP call, log in with a session cookie, and keep the browser for what it needs to check.