Skip to content

Stabilize notification Cypress sessions#230

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

Stabilize notification Cypress sessions#230
coder13 merged 1 commit into
masterfrom
agent/notification-cypress-stability

Conversation

@coder13

@coder13 coder13 commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • authenticate Cypress test identities through the browser-facing Vite proxy instead of switching only the direct API session
  • wait for the accepted friend-request response and assert the requester's browser notification payload before checking the rendered inbox
  • preserve the existing CSRF and API rate-limit behavior

Why

The #226 Cypress logs show the friend acceptance succeeds with HTTP 200, but immediately after loginAs(requester) the browser API requests for me and notifications return 403. The test had logged in through port 8080 while the app ran through port 3000, leaving a direct-API-to-browser session handoff race. This makes the test use the same proxied origin as the browser.

Refs #226

Authenticate test users through the browser-facing proxy and wait for the accepted notification response, avoiding a direct API-to-browser session handoff race without changing CSRF or rate limits.
@coder13
coder13 marked this pull request as ready for review July 14, 2026 02:40
@coder13
coder13 merged commit b971d45 into master Jul 14, 2026
9 checks passed
@coder13
coder13 deleted the agent/notification-cypress-stability branch July 14, 2026 02:40
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