mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 15:03:07 +00:00
adjusted e2e test to match new contents
This commit is contained in:
@@ -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');
|
||||
});
|
||||
});
|
||||
|
@@ -12,4 +12,8 @@ export class ProtractorPage {
|
||||
getFirstPText() {
|
||||
return element(by.xpath('//p[1]')).getText();
|
||||
}
|
||||
}
|
||||
|
||||
getFirstHeaderText() {
|
||||
return element(by.xpath('//h1[1]')).getText();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user