Fix end to end tests to actually run and test something

This commit is contained in:
Tom Bloor 2017-08-24 18:33:21 +01:00
parent 21fb03bacf
commit dada7384c2
3 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
import { CoreUIPage } from './app.po';
describe('core-ui App', function() {
describe('LocalLoop App', () => {
let page: CoreUIPage;
beforeEach(() => {
@ -9,6 +9,6 @@ describe('core-ui App', function() {
it('should display message saying app works', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('app works!');
expect(page.getLoginHeaderText()).toEqual('Login');
});
});

View file

@ -1,11 +1,11 @@
import { browser, element, by } from 'protractor/globals';
import { browser, element, by } from 'protractor';
export class CoreUIPage {
navigateTo() {
return browser.get('/');
}
getParagraphText() {
getLoginHeaderText() {
return element(by.css('app-root h1')).getText();
}
}