[ADF-4106] Permissions Component automated (#4449)

* Permissions Component automated

* linting fixes

* making tests stable

* making tests stable

* making tests stable
This commit is contained in:
gmandakini
2019-03-17 01:15:37 +00:00
committed by Eugenio Romano
parent 94cd14bf71
commit d6f391c40e
8 changed files with 1499 additions and 259 deletions

View File

@@ -42,6 +42,32 @@ export class VersionManagePage {
return this;
}
checkMajorChangeIsDisplayed() {
Util.waitUntilElementIsVisible(this.majorRadio);
return this;
}
checkMinorChangeIsDisplayed() {
Util.waitUntilElementIsVisible(this.minorRadio);
return this;
}
checkCommentTextIsDisplayed() {
Util.waitUntilElementIsVisible(this.commentText);
return this;
}
clickAddNewVersionsButton() {
Util.waitUntilElementIsVisible(this.showNewVersionButton);
this.showNewVersionButton.click();
return this;
}
checkCancelButtonIsDisplayed() {
Util.waitUntilElementIsVisible(this.cancelButton);
return this;
}
uploadNewVersionFile(fileLocation) {
browser.setFileDetector(new remote.FileDetector());
Util.waitUntilElementIsVisible(this.uploadNewVersionButton);