Demo accounts
For an app you run locally, the agent creates a demo account and its data, writes the sign-in steps to.demoman/accounts.json and the
password to .demoman/secrets.env (git-ignored) with the one site it may
be typed on. Demoman then signs in by itself, whenever a session is missing
or has lapsed. The agent commits nothing for the account until you
add a flow to your repo; then it commits
accounts.json and the script that creates the account with the flow, so
CI can sign in the same way.
On your own machine, keep secrets in
.demoman/secrets.env, not your
shell: an agent may pass Demoman only part of its environment, as
Codex does, so a variable exported in your shell may never reach it.Your own sign-in
For a real account, sign in once yourself:signin.
Demoman then opens the page signed in and signed out, and keeps the
headings, links and buttons only the signed-in page shows. A run that
starts on that page and finds none of them stops as signed out, so a sign-in
wall at the app’s own address is never recorded; on another page of the app
it records, and its report says so. Give signin a page that differs once
signed in, such as the app’s home. A session saved before Demoman did this
has none of this: its runs say so, and running signin again adds it.
A flow recorded this way cannot be added to the repo: CI has no way to sign
in as you. Record it again with a demo account first.
In CI
Set eachDEMOMAN_SECRET_<NAME> from the provider’s secrets, with
DEMOMAN_SECRET_<NAME>_ORIGIN naming the one site it may be typed on.
Keep videos current sets them for GitHub Actions. Check an
account with:
--account takes the account’s name from .demoman/accounts.json. Every
flag is on signin.
Next · 05
Add to your repo