Skip to content

feat(e2e): staging auth generation for E2E tests#210

Merged
zainfathoni merged 6 commits intostagingfrom
feat/e2e-staging-codegen
Jan 25, 2026
Merged

feat(e2e): staging auth generation for E2E tests#210
zainfathoni merged 6 commits intostagingfrom
feat/e2e-staging-codegen

Conversation

@zainfathoni
Copy link
Copy Markdown
Owner

Adds npm scripts and documentation for generating auth fixtures against staging environment.

Changes

  • Add staging email addresses to auth generation scripts
  • Add npm scripts: test:e2e:staging, test:e2e:staging:codegen
  • Update documentation with staging auth workflow

zainfathoni and others added 6 commits January 19, 2026 11:39
Replace manual cookie export instructions with playwright codegen approach:
- Update playwright-staging-setup.ts documentation
- Update docs/testing-principles.md with codegen commands
Add test:e2e:staging:auth:member and test:e2e:staging:auth:author scripts
using playwright codegen --save-storage approach
- Update npm scripts to echo the correct email for each role
- Add admin auth script
- Update playwright-staging-setup.ts with staging emails
- Update docs/testing-principles.md with email table

Staging emails:
- member: member@rumahberbagi.com
- author: vika@rumahberbagi.com
- admin: admin@rumahberbagi.com
Session cookies were expiring immediately because the expires date was
calculated at server startup time. After 7+ days of server uptime, all
new cookies would have an expiration date in the past.

Also adds error feedback display on login page when email verification
fails (e.g., burner email, invalid format).

Closes rb-login-broken

Amp-Thread-ID: https://ampcode.com/threads/T-019bed38-9b38-74b0-8aa7-70eaf424dcc6

Co-authored-by: Amp <amp@ampcode.com>
@zainfathoni zainfathoni merged commit 9eb566a into staging Jan 25, 2026
8 checks passed
@zainfathoni zainfathoni deleted the feat/e2e-staging-codegen branch January 25, 2026 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant