adjusted e2e test to match new contents

This commit is contained in:
Art Lowel
2017-05-18 15:26:16 +02:00
parent f5e5b72f47
commit a721bb0a4b
2 changed files with 7 additions and 3 deletions

View File

@@ -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');
});
});

View File

@@ -12,4 +12,8 @@ export class ProtractorPage {
getFirstPText() {
return element(by.xpath('//p[1]')).getText();
}
}
getFirstHeaderText() {
return element(by.xpath('//h1[1]')).getText();
}
}