Cypress · Middle · Question 49 of 77

How do you test responsive layouts in Cypress?

Show the answer

Correct answer: Set cy.viewport per test or loop over sizes

Explanation

A loop with cy.viewport(w, h) and assertions per breakpoint checks menus and layout at each size.

Further reading

Problem with a question

Cypress · Middle · question 49

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