Skip to content

test(e2e): assert the session cookie flags on a smoke sign-in - #352

Merged
arrzdev merged 1 commit into
mainfrom
test/smoke-session-cookie-flags
Nov 17, 2026
Merged

arrzdev merged 1 commit into
mainfrom
test/smoke-session-cookie-flags

Conversation

@arrzdev

@arrzdev arrzdev commented Nov 17, 2026

Copy link
Copy Markdown
Owner

What

The read-only production smoke now catches a session cookie that loses Secure, HttpOnly or SameSite=Lax.

  • New test in e2e/smoke.spec.ts: signs in with an existing QA account (E2E_QA_EMAIL, E2E_QA_PASSWORD), checks the attributes of the session Set-Cookie, then signs out. The only write is the session row, and sign-out deletes it.
  • Skipped when the two variables are not set, so local and CI runs are unchanged.
  • On failure the test prints only the cookie attributes. It never prints the token.

How to verify

E2E_BASE_URL=https://abalone.tudu.dev E2E_QA_EMAIL=… E2E_QA_PASSWORD=… pnpm exec playwright test e2e/smoke.spec.ts

Against production without a QA account: 8 passed, 4 skipped (the new test on each project). There is no QA account on production yet, so the new test skips until one exists.

The deployed-environment smoke signs in with an existing QA account from E2E_QA_EMAIL and E2E_QA_PASSWORD, checks the session Set-Cookie carries Secure, HttpOnly and SameSite=Lax, then signs out. Skipped when the account is not set.
@arrzdev
arrzdev merged commit d037441 into main Nov 17, 2026
5 checks passed
@arrzdev
arrzdev deleted the test/smoke-session-cookie-flags branch November 17, 2026 05:52
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