feat(e2e): staging auth generation for E2E tests#210
Merged
zainfathoni merged 6 commits intostagingfrom Jan 25, 2026
Merged
Conversation
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>
This was referenced Feb 1, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds npm scripts and documentation for generating auth fixtures against staging environment.
Changes
test:e2e:staging,test:e2e:staging:codegen