data.gov icon indicating copy to clipboard operation
data.gov copied to clipboard

make playwright session cookie never expire

Open rshewitt opened this issue 11 months ago • 3 comments

we want the playwright session cookie to never expire so auth tests don't fail all of a sudden

How to reproduce

  • wait for session cookie to expire (or replace it with nonsense) and watch playwright tests behind auth fail

Expected behavior

  • tests behind auth to pass because there's no expiration to the session cookie

Actual behavior

  • tests behind auth fail because session cookie has expired

Sketch

[Notes or a checklist reflecting our understanding of the selected approach]

rshewitt avatar May 13 '25 19:05 rshewitt

Another alternative is to script the Identity Sandbox login process in our frontend tests using an Identity Sandbox account for an email like [email protected]. https://github.com/GSA-TTS/FAC/blob/main/backend/cypress/support/login-gov.js is an example in Cypress.

neilmb avatar May 14 '25 15:05 neilmb

Flagging for pairing discussion on Tuesday 5/20.

Goals:

  • Decide method
  • Write sketch

tdlowden avatar May 15 '25 20:05 tdlowden

@rshewitt @FuhuXia is this something to keep in the queue or now that more people have the ability to remedy, should we close as not planned?

tdlowden avatar Aug 22 '25 12:08 tdlowden