From dada7384c211e0190bd4db4d0bc4172c8555b25a Mon Sep 17 00:00:00 2001 From: Tom Bloor Date: Thu, 24 Aug 2017 18:33:21 +0100 Subject: [PATCH] Fix end to end tests to actually run and test something --- e2e/app.e2e-spec.ts | 4 ++-- e2e/app.po.ts | 4 ++-- e2e/tsconfig.e2e.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/e2e/app.e2e-spec.ts b/e2e/app.e2e-spec.ts index 022797d..b9a83ba 100644 --- a/e2e/app.e2e-spec.ts +++ b/e2e/app.e2e-spec.ts @@ -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'); }); }); diff --git a/e2e/app.po.ts b/e2e/app.po.ts index d51eaf2..21a02b3 100644 --- a/e2e/app.po.ts +++ b/e2e/app.po.ts @@ -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(); } } diff --git a/e2e/tsconfig.e2e.json b/e2e/tsconfig.e2e.json index ac7a373..e2a9a2f 100644 --- a/e2e/tsconfig.e2e.json +++ b/e2e/tsconfig.e2e.json @@ -4,7 +4,7 @@ "outDir": "../out-tsc/e2e", "module": "commonjs", "target": "es5", - "types":[ + "types": [ "jasmine", "node" ]