text: 'use strict';
  
  describe('Location e2e test', function () {
  
      var username = element(by.id('username'));
      var password = element(by.id('password'));
      var entityMenu = element(by.id('entity-menu'));
      var accountMenu = element(by.id('account-menu'));
      var login = element(by.id('login'));
      var logout = element(by.id('logout'));
  
      beforeAll(function () {
          browser.get('/');
  
          accountMenu.click();
          login.click();
  
          username.sendKeys('admin');
          password.sendKeys('admin');
          element(by.css('button[type=submit]')).click();
      });
  
      it('should load Locations', function () {
          entityMenu.click();
          element.all(by.css('[ui-sref="location"]')).first().click().then(function() {
              expect(element.all(by.css('h2')).first().getText()).toMatch(/Locations/);
          });
      });
  
      it('should load create Location dialog', function () {
          element(by.css('[ui-sref="location.new"]')).click().then(function() {
              expect(element(by.css('h4.modal-title')).getText()).toMatch(/Create or edit a Location/);
              element(by.css('button.close')).click();
          });
      });
  
      afterAll(function () {
          accountMenu.click();
          logout.click();
      });
  });
  