Login flow test
Goal
Check everything about a sign-in flow that does not need a secret typed by the agent: the page loads, the fields are labelled, the links go to the right places, errors read well, and redirects land correctly. The agent never types a password, code or token.
When to use
- The user is building or reviewing a login or sign-up page and wants a live check.
- A redirect after sign-in or sign-out seems wrong.
- For other forms on the site, use
use_skillwithform-validation-test. - For a security review of the code behind sign-in, use
use_skillwithauth-flow-review.
Steps
- Ask with
ask_userfor the address, which environment it is (local, staging or production), and what the flow should do after sign-in. If it is production, test only what is safe without an account: structure, links and empty-field messages. Do not make repeated attempts on a live account. - Open the page with
browser_navigate. Usebrowser_snapshotto list fields, labels, buttons, links such as "forgot password" and "sign up", and any social sign-in buttons. Check each input has a visible label, a sensible type and an autocomplete hint. - Check the console with
browser_consoleafter load for errors and warnings, such as blocked scripts, mixed content or failed requests. - Test empty submission by clicking the submit button with the fields empty. Read the message with
browser_get_text. Check that it names the problem, is shown near the field, and does not reveal whether an account exists. - Test a malformed email address with an obviously fake value such as
not-an-email. This is a test of format validation and carries no secret. Do not type anything into a password field. - Ask the user to enter their own credentials in the browser when you need to go further. Wait for them to say it is done. Then take a
browser_snapshotand check where the redirect lands, that the user's name or menu shows, and that the address has no tokens in the query string. - Check the surrounding behaviour: the "forgot password" page opens and asks for an email only, sign-out returns to a sensible page, and pressing back after sign-out does not show private pages. Use
browser_historywhere available. - Check links open the right pages with
browser_clickandbrowser_tabs, including terms and privacy links. - Write the findings with the steps to reproduce each one.
- Close the browser session with
browser_closeand remind the user to sign out of anything they signed into for the test.
Gotchas
- Repeated wrong attempts can lock an account or trigger alerts. Keep to one or two safe failures.
- Never type test credentials from memory or from a seed file into a site that is not clearly the user's own local or staging app.
- Error messages that say "no account with that email" help attackers. Flag them.
- Some sign-in pages hide the form in an iframe or a pop-up. Snapshot again after clicking the sign-in button.
- Two-factor prompts, CAPTCHAs and email links are for the user to complete. Stop and ask.
- Do not paste URLs that contain tokens into the report. Replace them with a placeholder.
- Password managers may fill the form on their own. Tell the user before you click into a field.
- A "remember me" box that is ticked by default is worth a note on shared computers.
Output
- A reminder of anything the user should sign out of or clear.
- A checklist of what passed, what failed and what could not be tested without credentials.
- Each failure with steps to reproduce and the text observed.
- The redirect path seen after the user signed in, with tokens removed.
