Open maxkopych opened 11 months ago
Ran into this and was pretty surprised by it. Not easy to fix because the reload in my case is coming from a library, so it's not as simple as adding some kind of mocking or should reload boolean to the root component props. Can't just stub window.reload()
itself out either, for the same reason mentioned in https://github.com/cypress-io/cypress/issues/8266#issuecomment-673954585.
Current behavior
Allow reload page for component testing. Currently when you trying to reload page it start over entire test and got stuck in loop.
Desired behavior
Reload page and re-init all runtime values. I think it good to have ability to reload page because imports in JS behaves as singleton every time when you mount without refresh basically updating the same object.
Test code to reproduce
My test:
store.js
commands.js
Cypress Version
13.6.0
Node version
v18.17.1
Operating System
WSL2
Debug Logs
No response
Other
No response