Skip to content
Snippets Groups Projects
Commit dc7e784b authored by Kristof De Langhe's avatar Kristof De Langhe Committed by Bram Luyten
Browse files

56434: e2e test fix

parent 47f6c244
No related branches found
No related tags found
No related merge requests found
...@@ -12,8 +12,8 @@ describe('protractor App', () => { ...@@ -12,8 +12,8 @@ describe('protractor App', () => {
expect<any>(page.getPageTitleText()).toEqual('DSpace Angular :: Home'); expect<any>(page.getPageTitleText()).toEqual('DSpace Angular :: Home');
}); });
it('should display header "Welcome to DSpace"', () => { it('should contain a news section', () => {
page.navigateTo(); page.navigateTo();
expect<any>(page.getFirstHeaderText()).toEqual('Welcome to DSpace'); expect<any>(page.getHomePageNewsText()).toBeDefined();
}); });
}); });
...@@ -9,11 +9,7 @@ export class ProtractorPage { ...@@ -9,11 +9,7 @@ export class ProtractorPage {
return browser.getTitle(); return browser.getTitle();
} }
getFirstPText() { getHomePageNewsText() {
return element(by.xpath('//p[1]')).getText(); return element(by.xpath('//ds-home-news')).getText();
}
getFirstHeaderText() {
return element(by.xpath('//h1[1]')).getText();
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment