supertokens / supertokens-website

Frontend SDK for SuperTokens - for session management + automatically refreshing sessions
https://supertokens.com
Other
54 stars 13 forks source link

fix: tests #264

Closed anku255 closed 4 months ago

anku255 commented 4 months ago

Summary of change

This PR fixes two tests -

  1. should break out of session refresh loop if cookie writes are disabled We removed (incognito mode) from the error message but the test wasn't updated.

  2. test warnings when cookie writes are not successful The error message needed to updated here as well. Along with that we needed to update the cookies check to only the frontend cookies as the backend cookies can be present even if frontend is unable to write to cookies. This test was passing previously because an additional refresh call was clearing the backend cookies as well as explained in #263

Related issues

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)

Documentation changes

(If relevant, please create a PR in our docs repo, or create a checklist here highlighting the necessary changes)

Checklist for important updates

github-actions[bot] commented 4 months ago

size-limit report 📦

Path Size
lib/build/bundleEntry.js 21.31 KB (0%)