Playwright · Senior · Question 36 of 77
What is the main maintenance problem of a huge "god" page object?
- 1TypeScript cannot compile classes past 1000 lines
- 2Many tests depend on one class, so changes ripple far
- 3Large classes make Playwright tests run slowly
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.