[ADF-3193, ADF-3275] CardView e2e tests (#3577)

* CardView item key-value pair and combobox tests

* Change describe title
This commit is contained in:
rgherghelas
2018-07-11 11:56:59 +03:00
committed by Eugenio Romano
parent 9b804f72f2
commit 50b6fb978b
3 changed files with 211 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ var NavigationBarPage = function (){
var themeButton = element(by.css("button[data-automation-id='theme menu']"));
var themeMenuContent = element(by.css("div[class*='mat-menu-panel']"));
var logoutButton = element(by.css("a[adf-logout]"));
var cardViewButton = element(by.cssContainingText(".sidenav-menu-label","CardView"));
/**
* Click Content Services Button
@@ -35,7 +36,7 @@ var NavigationBarPage = function (){
this.clickContentServicesButton = function (){
Util.waitUntilElementIsVisible(contentServicesButton);
contentServicesButton.click();
};
};
/**
* Click Process Services Button
@@ -87,6 +88,15 @@ var NavigationBarPage = function (){
logoutButton.click();
};
/**
* Click Card View Button
* @method clickCardViewButton
*/
this.clickCardViewButton = function(){
Util.waitUntilElementIsVisible(cardViewButton);
cardViewButton.click();
};
};
module.exports = NavigationBarPage;