[ADF-3333] Test for Viewer - Part 3 (#3927)

* [ADF-3333] Test for Viewer - Part 3

* Fixing failing test

* remove async not necessary

* fix lint
This commit is contained in:
Marouan Bentaleb
2018-11-28 00:22:42 +00:00
committed by Eugenio Romano
parent 94905d1065
commit cc7b9230ee
11 changed files with 338 additions and 125 deletions

View File

@@ -30,6 +30,7 @@ export class NavigationBarPage {
processServicesCloudButton = element(by.css('a[data-automation-id="Process Cloud"]'));
loginButton = element(by.css('a[data-automation-id="Login"]'));
trashcanButton = element(by.css('a[data-automation-id="Trashcan"]'));
overlayViewerButton = element(by.css('a[data-automation-id="Overlay Viewer"]'));
userProfileButton = element(by.css('button[data-automation-id="adf-user-profile"]'));
themeButton = element(by.css('button[data-automation-id="theme menu"]'));
themeMenuContent = element(by.css('div[class*="mat-menu-panel"]'));
@@ -79,6 +80,12 @@ export class NavigationBarPage {
this.trashcanButton.click();
}
clickOverlayViewerButton() {
Util.waitUntilElementIsVisible(this.overlayViewerButton);
this.overlayViewerButton.click();
return this;
}
clickUserProfile() {
Util.waitUntilElementIsVisible(this.userProfileButton);
this.userProfileButton.click();