2017-08-22 15:31:15 -04:00
|
|
|
'use strict'; // necessary for es6 output in node
|
2017-02-22 13:13:21 -05:00
|
|
|
|
2017-08-22 15:31:15 -04:00
|
|
|
import { browser, element, by } from 'protractor';
|
2017-02-22 13:13:21 -05:00
|
|
|
|
2017-08-22 15:31:15 -04:00
|
|
|
describe('cli-quickstart App', () => {
|
2017-02-22 13:13:21 -05:00
|
|
|
beforeEach(() => {
|
2017-08-22 15:31:15 -04:00
|
|
|
return browser.get('/');
|
2017-02-22 13:13:21 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
it('should display message saying app works', () => {
|
2017-08-22 15:31:15 -04:00
|
|
|
let pageTitle = element(by.css('app-root h1')).getText();
|
|
|
|
expect(pageTitle).toEqual('Welcome to My First Angular App!!');
|
2017-02-22 13:13:21 -05:00
|
|
|
});
|
|
|
|
});
|