Protractor - executing login scripts prior to launching my test specs
问题 The basic problem is here is that I was trying to login initially, launch my app, then run ALL specs. It turned out to NOT be a good approach. What I couldn't figure out is the following: Why navpanel-spec.js below was running first - before the login and launch js files. In other words, if I add a browser.pause() in navpanel-spec.js, it pauses immediately - PRIOR to even running my login-spec.js code. CONFUSING ! In my Protractor.config.js file I have a few specs : specs: [ 'spec/login.js',