I have a application which has different roles for login and allows to
create objects which can have different states and depending on the states
different views are displayed.
Now I would like to organize end-to-end tests in a more complex way:
1. several tests have dependencies on others: for example in one test
suites objects are created and in other tests these objects are modified
2. I would like to group tests depending on a set of roles. One tests
should be executed three times each with a login of role A, B and C, others
only for role A and B and so on.
So I need something like conditions:
if (role in [A,B,C]) {
run test abcTest.spec.js
}
or
if (object.state == 2) {
run status2Test.spec.js
}
and dependencies like:
dependsOn(createObject.spec.js)
Is that possible with protractor?
Any ideas how to achieve this?
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.