From 8d6b5cbd96eaeaf13cc0a17f63ac1d89cee318cb Mon Sep 17 00:00:00 2001 From: Nabil BENDAFI Date: Fri, 23 Feb 2018 17:22:14 +0100 Subject: [PATCH] Fix e2e test --- e2e/app.e2e-spec.ts | 4 ++-- e2e/app.po.ts | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/e2e/app.e2e-spec.ts b/e2e/app.e2e-spec.ts index 446ba8d9..20f85005 100644 --- a/e2e/app.e2e-spec.ts +++ b/e2e/app.e2e-spec.ts @@ -7,8 +7,8 @@ describe('gns3-web-ui App', () => { page = new Gns3WebUiPage(); }); - it('should display welcome message', () => { + it('should display title', () => { page.navigateTo(); - expect(page.getParagraphText()).toEqual('Welcome to app!'); + expect(page.getTitleText()).toEqual('GNS3 Web UI Demo'); }); }); diff --git a/e2e/app.po.ts b/e2e/app.po.ts index c91f4312..458a6e6a 100644 --- a/e2e/app.po.ts +++ b/e2e/app.po.ts @@ -5,6 +5,10 @@ export class Gns3WebUiPage { return browser.get('/'); } + getTitleText() { + return browser.getTitle(); + } + getParagraphText() { return element(by.css('app-root h1')).getText(); }