Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage event not working in cypress #30312

Open
gajraj-gan opened this issue Sep 28, 2024 · 0 comments
Open

storage event not working in cypress #30312

gajraj-gan opened this issue Sep 28, 2024 · 0 comments

Comments

@gajraj-gan
Copy link

Current behavior

in our code we have a useLocalStorage hook, which uses 'storage' event to update the state when localStorage is updated.
This event is not triggered when using cypress (after updating the LocalStorage yk)

Desired behavior

The storage event should get triggered.

Test code to reproduce


Cypress Version

13.11.0

Node version

18.18.2

Operating System

macOS 12.5

Debug Logs

No response

Other

No response

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

No branches or pull requests

1 participant