I want use the common login in my testing project, according to the reference https://github.com/angular/protractor/blob/master/spec/withLoginConf.js, it suggests using onPrepare to implement.
Could you clarify where to define the onPrepare so that the statements defined inside it can be executed automatically?
I want use the common login in my testing project, according to the reference https://github.com/angular/protractor/blob/master/spec/withLoginConf.js, it suggests using onPrepare to implement. Could you clarify where to define the onPrepare so that the statements defined inside it can be executed automatically?
Thanks in advance.