mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
56434: e2e test fix
This commit is contained in:

committed by
Bram Luyten

parent
47f6c24484
commit
dc7e784b83
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user