Cypress · Middle · Question 32 of 77

Why does Cypress recommend against the Page Object pattern in some cases?

Show the answer

Correct answer: App actions and custom commands can be simpler and faster

Explanation

Page objects aren't forbidden, but deep hierarchies add indirection. Short custom commands and direct state setup often read better.

Further reading

Problem with a question

Cypress · Middle · question 32

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