Occasionally, our test that validates that logging out is working correctly fails because we are randomly getting a 200 status code on a subsequent call to /api/auth/me. We are leveraging the pattern in the Readme of this project for that validation.
Expected behavior
After a call to cy.logout, a request to /api/auth/me should always have a 401 status code.
Behavior
Occasionally, our test that validates that logging out is working correctly fails because we are randomly getting a 200 status code on a subsequent call to
/api/auth/me
. We are leveraging the pattern in the Readme of this project for that validation.Expected behavior
After a call to
cy.logout
, a request to/api/auth/me
should always have a 401 status code.