Before all my tests (running in jasmine under the protractor), I have to log in to my system, and if the login fails, I should not run any test. But even when I use proccess.exit (which is the node function to stop the program), the tests are still running and everything fails.
beforeAll(function(done){ mainPage.resize(); loginPage.login(env.regularUser).then(function(){ mainPage.navigate(); mainPage.waitLoading(); done(); }, function(){ process.exit(1); }); });
How to prevent tests from running in a beforeAll block?
jasmine protractor
SET
source share