Cypress · Middle · Question 24 of 77
What does cy.window() give you?
- 1The size of the current browser window in pixels
- 2The app's
window, to read or call things on it - 3A new browser window for parallel tests
Show the answer
Correct answer: The app's window, to read or call things on it
Explanation
For example cy.window().its('store').invoke('dispatch', action) sets app state in tests that support it.