mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
e2e test error page and fix (#3672)
* fix wrong input parameter functionality * not reload the page to go to the content service page * navigate instead to reload to go to the process service page
This commit is contained in:
committed by
Eugenio Romano
parent
6cf6c9c0e4
commit
2e0945b0cc
@@ -68,7 +68,7 @@ var CardViewComponentPage = function () {
|
||||
return saveIcon.click();
|
||||
};
|
||||
|
||||
this.getTextFieldText = function (text) {
|
||||
this.getTextFieldText = function () {
|
||||
var textField = element(by.css("span[data-automation-id='card-textitem-value-name']"));
|
||||
Util.waitUntilElementIsVisible(textField);
|
||||
return textField.getText();
|
||||
@@ -108,13 +108,13 @@ var CardViewComponentPage = function () {
|
||||
return this;
|
||||
};
|
||||
|
||||
this.getIntFieldText = function (text) {
|
||||
this.getIntFieldText = function () {
|
||||
var textField = element(by.css('span[data-automation-id="card-textitem-value-int"]'));
|
||||
Util.waitUntilElementIsVisible(textField);
|
||||
return textField.getText();
|
||||
};
|
||||
|
||||
this.getErrorInt = function (text) {
|
||||
this.getErrorInt = function () {
|
||||
let errorElement = element(by.css('mat-error[data-automation-id="card-textitem-error-int"]'));
|
||||
Util.waitUntilElementIsVisible(errorElement);
|
||||
return errorElement.getText();
|
||||
@@ -147,13 +147,13 @@ var CardViewComponentPage = function () {
|
||||
return this;
|
||||
};
|
||||
|
||||
this.getFloatFieldText = function (text) {
|
||||
this.getFloatFieldText = function () {
|
||||
var textField = element(by.css('span[data-automation-id="card-textitem-value-float"]'));
|
||||
Util.waitUntilElementIsVisible(textField);
|
||||
return textField.getText();
|
||||
};
|
||||
|
||||
this.getErrorFloat = function (text) {
|
||||
this.getErrorFloat = function () {
|
||||
let errorElement = element(by.css('mat-error[data-automation-id="card-textitem-error-float"]'));
|
||||
Util.waitUntilElementIsVisible(errorElement);
|
||||
return errorElement.getText();
|
||||
|
Reference in New Issue
Block a user