Skip to content

End-to-end test suite making use of state objects.#1

Open
avandeursen wants to merge 2 commits intomasterfrom
state-objects
Open

End-to-end test suite making use of state objects.#1
avandeursen wants to merge 2 commits intomasterfrom
state-objects

Conversation

@avandeursen
Copy link
Copy Markdown
Owner

Re-implementation of the Angular Phonecat Protractor test scenarios.

This reimplementation has two 'state objects', which are page-objects derived from a state machine. The actual statechart used is shown below.

As a result, the scenarios themselves are 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
Copy link
Copy Markdown
Owner Author

Note: This pull request thankfully uses @felthat's fix to the original protractor test suite available from angular#267.

That fix is unrelated to the use of page/state objects, but just need to get the tests working in the first place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants