Docs › Sites
Signed-in tests and saved logins
Test the pages behind a sign-in: sign in once in a live browser, or save a test login for runs with nobody around. Get past a staging site's password page or Cloudflare Access too.
Who testers are signed in as
Under Your site on Set up, Signed in as sets who the testers are on this site: a Guest, a Signed-in customer or a B2B buyer, as far as the template allows. A single mission can need an account too, with Needs a signed-in account ticked (see Writing missions).
Signed-in testers need a way in. There are two.
Sign in once in a live browser
Before the testers start, someone from your team signs in to the site once, in a live browser. MFA and CAPTCHAs are fine, since a person does it. The sign-in is kept for later runs of this site.
- Run the test. It waits at Needs you: Sign in to the site so the testers can start.
- Press Open browser. A browser on the site opens in a new tab.
- Sign in as the test user the testers should be, get past any “are you human” check, and press Done when the page shows you signed in.
If nobody signs in within 30 minutes, the run stops and its credits go back; run it again when someone can. The environment then says Signed in from an earlier run, and until when; press Sign out next to it to drop that sign-in.
Save a test login
For runs with nobody around, such as CI on every deploy, save the username and password of a test account. Testers type it when the site asks them to sign in.
- On Set up, open Or save a test login, for runs with nobody around under Signed in as. Or open the environment on the site's page and find Test login.
- Enter the Test username or email and the Test password, and press Save.
A login is saved for one address, so Production and Staging each keep their own. Use an account made for testing, never a real person's.
Staging behind a password page or Cloudflare Access
Some staging sites keep everyone out before the site's own sign-in. These are not accounts on the site; they let the browser reach it at all. Open the environment and press Behind the browser's password box or Cloudflare Access?
- Password page: for a site behind the browser's own sign-in box. Enter its username and password and press Save.
- Cloudflare Access: make a service token in Zero Trust, allow it in the application's policy (Service Auth), then enter its Client ID and Client secret and press Save.
Each is sent only to that environment's address.
How logins are kept
Logins, sign-ins, password-page logins and Access tokens are saved per address, encrypted, and used only by your testers. They are never shown again, here or anywhere. Testers type a saved password without ever seeing it.
Settings › Saved sign-ins lists everything saved, by address and kind: test login, signed-in session, password page or Access token. Press Forget to delete one. On an environment, Forget it does the same.
Saving and forgetting logins needs Add and change sites on the People page. On a site another company shares with you, its owner's logins sign the testers in.
What's next
- Following your runs: what Needs you looks like on Runs.
- CI and the API.