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