From a721bb0a4b37bce66239519d963f39bbc50705eb Mon Sep 17 00:00:00 2001 From: Art Lowel Date: Thu, 18 May 2017 15:26:16 +0200 Subject: [PATCH] adjusted e2e test to match new contents --- e2e/app.e2e-spec.ts | 4 ++-- e2e/app.po.ts | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/e2e/app.e2e-spec.ts b/e2e/app.e2e-spec.ts index ee7b101f96..90ea2026e3 100644 --- a/e2e/app.e2e-spec.ts +++ b/e2e/app.e2e-spec.ts @@ -12,8 +12,8 @@ describe('protractor App', function() { expect(page.getPageTitleText()).toEqual('DSpace'); }); - it('should display title "Hello, World!"', () => { + it('should display header "Welcome to DSpace"', () => { page.navigateTo(); - expect(page.getFirstPText()).toEqual('Hello, World!'); + expect(page.getFirstHeaderText()).toEqual('Welcome to DSpace'); }); }); diff --git a/e2e/app.po.ts b/e2e/app.po.ts index 164c524620..d8d2acf120 100644 --- a/e2e/app.po.ts +++ b/e2e/app.po.ts @@ -12,4 +12,8 @@ export class ProtractorPage { getFirstPText() { return element(by.xpath('//p[1]')).getText(); } -} \ No newline at end of file + + getFirstHeaderText() { + return element(by.xpath('//h1[1]')).getText(); + } +}