message: Switch back to login check via location compare
  (where staying on login means failed login and success
  resulted in forward to search results)
diff: @@ -15,10 +15,8 @@ protractor.expect = {
  protractor.beforeEach = {
  login: function (context) {
  - let oldToken
  describe('(shared)', () => {
  beforeEach(() => {
  - oldToken = localStorage.getItem('token')
  browser.get('/#/login')
  element(by.id('email')).sendKeys(context.email)
  element(by.id('password')).sendKeys(context.password)
  @@ -26,7 +24,7 @@ protractor.beforeEach = {
  })
  it('should have logged in user "' + context.email + '" with password "' + context.password + '"', () => {
  - expect(localStorage.getItem('token')).not.toMatch(oldToken)
  + expect(browser.getCurrentUrl()).toMatch(/\/search/) // TODO Instead check for uib-tooltip of <i> with fa-user-circle
  })
  })
  }
  