mattupstate/angular-pipeline-example

View on GitHub
e2e/src/app.smoke-spec.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { browser } from 'protractor';
import { App } from './app.po';
import { HomePage } from './home.po';

const gitCommit: string = browser.params.buildInfo.gitCommit;

describe('Application', () => {
  let app: App;
  let homePage: HomePage;

  beforeEach(() => {
    app = new App();
    homePage = new HomePage();
  });

  it('should display the git commit', () => {
    homePage.navigateTo();
    expect(app.getGitCommit()).toEqual(gitCommit.substr(0, 7));
  });

});