The context of window is undefined
when called within a setTimeout
during strict mode
#5707
Labels
undefined
when called within a setTimeout
during strict mode
#5707
Current behavior:
The context of window is
undefined
when called within asetTimeout
during strict mode - originally found in this issue: #5698Desired behavior:
this
should be window - not undefined.Steps to reproduce: (app code and test code)
index.html
spec.js
Versions
Cypress 3.6.1
To Fix
This line of code below should be changed to:
https://github.com/cypress-io/cypress/blob/develop/packages/driver/src/cy/timers.js#L22:L22
I've confirmed this fixes the issue
The text was updated successfully, but these errors were encountered: