Add a test for logo text (#3837)

This commit is contained in:
cristinaj 2018-09-28 00:35:45 +03:00 committed by Eugenio Romano
parent 1152b10888
commit 711d51dd1d
2 changed files with 13 additions and 0 deletions

View File

@ -143,6 +143,14 @@ describe('Header Component', () => {
settingsPage.checkProviderDropdownIsDisplayed();
});
it('[C286517] Should be able to set a hyperlink to the logo text', () => {
headerPage.addLogoHyperlink(names.urlPath_logo_link);
navigationBarPage.clickAppLogoText();
settingsPage.checkProviderDropdownIsDisplayed();
});
it('[C280554] Should be able to customise the tooltip-text of the logo', () => {
headerPage.addLogoTooltip(names.logo_tooltip);

View File

@ -156,6 +156,11 @@ var NavigationBarPage = function () {
appLogo.click();
};
this.clickAppLogoText = function () {
Util.waitUntilElementIsVisible(appTitle);
appTitle.click();
};
this.checkLogoTooltip = function (logoTooltip) {
var logoTooltip = element(by.css('a[title="'+ logoTooltip +'"]'));
Util.waitUntilElementIsVisible(logoTooltip);