You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
@OliverJAsh Regarding the issue we talked about — here's a suggestion for how we can really get the right Window yielded by cy.window().
If my suggestion falls outside the scope of this pull request, please let me know — I can open a separate issue or a pull request instead.
When you run a test with Cypress, there are two Window instances in play.
The top Window object in which the Cypress UI lives, and
The Window that represents the tested application.
These are different Windows, but they share the same definition. If you define additional properties by using declaration merging, they will appear on both, which in most cases is incorrect and leads to bugs.
Allow users to define global variables separately.
In cli/types/index.d.ts, define an empty interface called ApplicationWindow.
Change the definition for cy.window so that the yielded object includes the properties defined by ApplicationWindow.