Files
substrata/scripts
CatoandClaude 9ca43d25db ci(accounts): a browser journey proves an account can be made and used (#301)
A new `account` job in browser-smoke.yml runs scripts/ux/account-journey.mjs
in Chromium against the production build and a PostgreSQL built from
scripts/db/*.sql: sign up with email and password (mail is off, so the
account signs in at once), see the account menu, sign out, have a wrong
password refused, sign back in, and a foreign origin gets 403.

The fleet's shared journey assumes account mail, which Substrata does not
send, so this drives Substrata's own screens.

lib/auth.ts now also trusts AUTH_URL as an origin, so the journey passes
with better-auth's origin check on (NODE_ENV=test and TEST stay unset). On
the box, lib/request-guards.ts already reads AUTH_URL as the public origin.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 11:13:53 +01:00
..