Cypress · Middle · Question 24 of 77

What does cy.window() give you?

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.

Further reading

Problem with a question

Cypress · Middle · question 24

Test yourself

Take the Cypress · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz