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 · 1 comment
Open

storage event not working in cypress #30312

gajraj-gan opened this issue Sep 28, 2024 · 1 comment
Labels
stage: needs information Not enough info to reproduce the issue topic: localStorage

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

@jennifer-shehane
Copy link
Member

@gajraj-gan Could you provide a minimal reproducible example?

@jennifer-shehane jennifer-shehane added stage: needs information Not enough info to reproduce the issue topic: localStorage labels Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage: needs information Not enough info to reproduce the issue topic: localStorage
Projects
None yet
Development

No branches or pull requests

2 participants