From 9a343eec4e468a8ee47734e6a6211979b8e9f114 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 8 May 2020 12:41:56 +0200 Subject: [PATCH] Fixed automatically generated e2e-test * Invested only minimal efforts * Only fixed current errors * No additional tests were added --- e2e/src/app.e2e-spec.ts | 2 +- e2e/src/app.po.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/src/app.e2e-spec.ts b/e2e/src/app.e2e-spec.ts index 144dccb..166cbca 100644 --- a/e2e/src/app.e2e-spec.ts +++ b/e2e/src/app.e2e-spec.ts @@ -10,7 +10,7 @@ describe('workspace-project App', () => { it('should display welcome message', () => { page.navigateTo(); - expect(page.getTitleText()).toEqual('angular-tour-of-heroes app is running!'); + expect(page.getTitleText()).toEqual('Tour of Heroes'); }); afterEach(async () => { diff --git a/e2e/src/app.po.ts b/e2e/src/app.po.ts index b8498c2..1a4c955 100644 --- a/e2e/src/app.po.ts +++ b/e2e/src/app.po.ts @@ -6,6 +6,6 @@ export class AppPage { } getTitleText() { - return element(by.css('app-root .content span')).getText() as Promise; + return element(by.css('app-root > h1')).getText() as Promise; } } -- 2.20.1