angular-phonecat icon indicating copy to clipboard operation
angular-phonecat copied to clipboard

Angular Phonecat test suite using page objects.

Open avandeursen opened this issue 10 years ago • 1 comments

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.

image

See also:

avandeursen avatar Sep 05 '15 12:09 avandeursen

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.

avandeursen avatar Sep 05 '15 12:09 avandeursen