From: Kai Moritz Date: Fri, 8 May 2020 10:41:56 +0000 (+0200) Subject: Fixed automatically generated e2e-test X-Git-Url: https://juplo.de/gitweb/?p=examples%2Fangular-tour-of-heroes;a=commitdiff_plain;h=9a343eec4e468a8ee47734e6a6211979b8e9f114 Fixed automatically generated e2e-test * Invested only minimal efforts * Only fixed current errors * No additional tests were added --- 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; } }