Skip to content

How-to guide

How to monitor a login flow with a browser check

If customers cannot sign in, nothing else matters. A browser check that logs in every few minutes catches broken JavaScript, auth outages and bad deploys within minutes.

3 min read10 sectionsUpdated

On this page

Key points

  • Use a dedicated test account with minimal permissions.
  • Assert on something only signed-in users see.
  • Give the test account nothing worth stealing: its own organization, read-only access.
  • Exempt the test account from 2FA and CAPTCHA, or use a test mode.

Why a browser check

An HTTP check on /login confirms the page loads. It does not confirm that the JavaScript runs, the form submits, the auth service answers, the session cookie is set and the dashboard renders. Each of those has failed in real outages while the login page itself returned 200. A real headless browser executes the same steps a customer does.

The steps

plaintext
1. go to        https://app.example.com/login
2. fill         input[name=email]     <test account email>
3. fill         input[name=password]  <test account password>
4. click        button[type=submit]
5. wait for     [data-testid=dashboard-header]     timeout 10 s
6. expect text  "Welcome back"
7. screenshot   (kept on failure)
8. click        [data-testid=sign-out]

The test account

  • A real account in production, in its own organization, with read-only permissions.
  • A strong, unique password used nowhere else, rotated like any other credential and updated in the check when it changes.
  • Excluded from 2FA, CAPTCHA and bot protection by account, IP range or a test header, if your security policy allows. If it does not, monitor the steps up to the second factor instead.
  • Excluded from analytics and billing metrics.

Settings

SettingSuggestion
IntervalEvery 5 minutes (browser checks are heavier than HTTP checks)
Regions2 or 3, where your users are
Down when2 consecutive failures
Timeouts10 s per step, 60 s overall
On failureScreenshot, page errors and the failing step in the alert

Beyond login

The same pattern covers other critical journeys: sign-up (with clean-up), password reset (with a test mailbox), search, and checkout. Pair each journey with backend traces so a failing step leads straight to the slow or failing request.

In VitalRix

Browser checks run a real headless Chromium for up to 25 steps (go to, click, fill, wait for, expect text, screenshot) from the regions you choose, and catch failures that only appear once JavaScript runs. Multi-step API monitors cover the same flow at the API level. See synthetic monitoring.

Frequently asked questions

Will the check lock the test account?

Only if it fails repeatedly with a wrong password. Alert on the first failures and keep the password in sync when you rotate it.

Is a browser check the same as real user monitoring?

No. A browser check is scripted and runs on a schedule, so it finds problems even with no traffic. Real user monitoring measures actual visitors.

Watch your own site and services with VitalRix

Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.