Playwright · Senior · Question 36 of 77

What is the main maintenance problem of a huge "god" page object?

Show the answer

Correct answer: Many tests depend on one class, so changes ripple far

Explanation

Split page objects by page or component and compose them. Smaller units are easier to change and review.

Further reading

Problem with a question

Playwright · Senior · question 36

Test yourself

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

Take this quiz