Skip to main content

2 docs tagged with "test setup"

View all tags

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.

How to Reuse a Login Across Tests

Logging in through the form at the start of every test makes the suite slow, and every test fails when the login page has a problem. The test suite can log in once, keep the session cookie, and start each test already logged in.