I have a protractor test with the following beforeAll code:
beforeAll(async (done: Function) => {
await browser.restart();
await browser.waitForAngularEnabled(false);
await performLogin('/some_url', LOGIN_EMAIL, LOGIN_PASSWORD);
await browser.waitForAngularEnabled(true);
done();
});
The login page is Microsoft Azure Ad, which isn't angular, hence the need to disable waitForAngular()
.
Sometimes it fails (a problem I am working on). However, when it fails the tests all run, and of course time out because they end up on the login screen.
Is there something I can call in beforeAll() to say "fail every scenario here"?