Tag Archives: ProtractorJS

ProtractorJS: A better way to implement page objects.


via ProtractorJS: A better way to implement page objects. — How We Build Fedora — Medium.

Page objects, recommended in the Protractor docs, are a popular pattern for writing end-to-end tests for Angular but they quickly become lists of ugly, boilerplate selectors that break when you decide to change your DOM. They do an excellent job of separating view logic from test logic, but they are mangled with references to models, css, and bindings that are none of their business. Plus, you have better things to do with your life than write page objects… like go learn how to milk a goat or study Gaelic.