text: 'use strict';
  
  /* https://github.com/angular/protractor/blob/master/docs/toc.md */
  
  describe('my app', function() {
  
      browser.get('index.html');
  
      it('should automatically redirect to /dashboard when location hash/fragment is empty', function() {
          expect(browser.getLocationAbsUrl()).toMatch("/dashboard");
      });
  
  
      describe('dashboard', function() {
  
          beforeEach(function() {
              browser.get('index.html#/dashboard');
          });
  
  
          it('should render dashboard when user navigates to /dashboard', function() {
              expect(element.all(by.css('[ng-view] p')).first().getText()).
              toMatch(/partial for view 1/);
          });
  
      });
  
  
      describe('location', function() {
  
          beforeEach(function() {
              browser.get('index.html#/location');
          });
  
  
          it('should render location when user navigates to /location', function() {
              expect(element.all(by.css('[ng-view] p')).first().getText()).
              toMatch(/partial for view 2/);
          });
  
      });
  });