merty/angular-boilerplate

View on GitHub
tests/e2e/home.scenario.js

Summary

Maintainability
A
0 mins
Test Coverage
/* global  browser, by, element */
'use strict';

var chai = require('chai');
var chaiAsPromised = require('chai-as-promised');

chai.use(chaiAsPromised);

describe('Application', function () {
  beforeEach(function () {
    browser.get('/');
  });

  it('home page should greet', function (done) {
    var heading = element(by.css('h1')).getText();
    chai.expect(heading).to.eventually.equal('Hello World!');
    done();
  });
});