Skip to content

Isolate Cypress test-user sessions#231

Merged
coder13 merged 1 commit into
masterfrom
agent/notification-cypress-session-isolation
Jul 14, 2026
Merged

Isolate Cypress test-user sessions#231
coder13 merged 1 commit into
masterfrom
agent/notification-cypress-session-isolation

Conversation

@coder13

@coder13 coder13 commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • restore each Cypress identity with cy.session before browser and API actions
  • validate the restored browser-facing session through the app proxy
  • retain API and rendered-inbox assertions for accepted friend requests

Why

In the #226 integration context, the request added in #230 was sent but did not match the narrow Cypress route matcher, while the underlying direct-API to browser session handoff could still produce anonymous browser calls. Session snapshots make identity switches explicit and deterministic without changing CSRF or rate-limit behavior.

Refs #226

Use Cypress session snapshots when switching test identities so the browser and direct API requests share one restored authenticated session. Assert the accepted notification through the API before rendering it.
@coder13
coder13 marked this pull request as ready for review July 14, 2026 02:47
@coder13
coder13 merged commit b89c3da into master Jul 14, 2026
9 checks passed
@coder13
coder13 deleted the agent/notification-cypress-session-isolation branch July 14, 2026 02:47
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