angular-phonecat
angular-phonecat copied to clipboard
Angular Phonecat test suite using page objects.
Revision of the test suite to make use of page objects. The page objects are derived from the state chart shown below.
This design is used in order to make the scenarios more robust and easier to follow, since the Protractor details are hidden in the state objects. Furthermore, the diagram guides the design of the actual scenarios.
Note that the state object methods return promises.

See also:
- My short blog post Beyond Page Objects briefly explaining the use of state objects.
- My ACM Queue article Beyond Page Objects: Testing Web Applications with State Objects.
- That same article in the Communications of the ACM: Testing Web Applications with State Objects.
Note: To get the existing tests to work I also had to use the fix in #267. This is independent of the use of page/state objects.
See also https://github.com/avandeursen/angular-phonecat/pull/1 which has both changes merged, and which works out of the box.