angularjs - Is there a before() function in Protractor? -


i aware there beforeeach() function using.

however, able run before function parent level 'describes' , not 'it' functions within them.

for example test looks (with x in front of functions beforeeach executes):

    beforeeach: login/out stuffs x   describe: create first case x       it: make selections x       it: add details x       it: change confidentiality settings x       it: etc x   describe: create second case x       it: make selections x       it: add details x       it: change confidentiality settings x       it: etc 

now below how want test (with x in front of functions want beforeeach execute):

beforeeach: login/out stuffs x   describe: create first case         it: make selections         it: add details         it: change confidentiality settings         it: etc x   describe: create second case         it: make selections         it: add details         it: change confidentiality settings         it: etc 

please suggest solutions.

as understand it, intention design choice tests run scratch each it. otherwise, each make state changes cause sibling fail.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -