[ADF-3018] Create automated test for replacing an app (#3572)

* [ADF-3018] Create automated test for replacing an app

* Use await in the test

* Fixing document list pagination test.

* Implemented delete version and delete entire app test cases.

* Added a log.

* Added the api call into protractor control flow.

* Renamed the test cases

* Commented 'Click Audit Log button' test.

* Added some in control flow.

* Changing the test rail ID.
This commit is contained in:
cristinaj
2018-07-16 15:41:47 +03:00
committed by Eugenio Romano
parent 192cca63aa
commit 98243f0450
5 changed files with 147 additions and 11 deletions

View File

@@ -77,9 +77,7 @@ var ProcessServicesPage = function(){
this.getBackgroundColor = function(applicationName) {
var app = element(by.css("mat-card[title='" + applicationName +"']"));
Util.waitUntilElementIsVisible(app);
return app.getCssValue("color").then(function (value) {
return value;
});
return app.getCssValue("background-color");
};
this.getDescription = function(applicationName) {
@@ -90,6 +88,16 @@ var ProcessServicesPage = function(){
return description.getText();
};
this.checkAppIsNotDisplayed = function(applicationName) {
var app = element(by.css("mat-card[title='" + applicationName +"']"));
return Util.waitUntilElementIsNotOnPage(app);
};
this.checkAppIsDisplayed = function(applicationName) {
var app = element(by.css("mat-card[title='" + applicationName +"']"));
return Util.waitUntilElementIsVisible(app);
};
};
module.exports = ProcessServicesPage;