DEV Community

Discussion on: How to read the browser's localStorage with Cypress

berns_churches profile image
Berns Fire Death

Awesome. Going to try this library you used for one of my projects where I can test the localStorage using window.localStorage.getItem('session.user') and my test passesbut when I run this in a docker testing automation set-up I get back a null. Any ideas on that or reasons?

walmyrlimaesilv profile image
Walmyr Filho Author

I'd have to read the code to reason about it.
I'm glad you liked it though