mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[no-issue-e2e] directive crete folder new e2e (#3677)
* new folder directive e2e * fix search test * fix pr-deploy script
This commit is contained in:
committed by
Eugenio Romano
parent
9c22c13434
commit
c089c87630
@@ -19,10 +19,10 @@ var Util = require('../../../util/util');
|
||||
|
||||
var CreateFolderDialog = function () {
|
||||
|
||||
var folderNameField = element(by.css("input[placeholder='Name']"));
|
||||
var folderDescriptionField = element(by.css("textarea[placeholder='Description']"));
|
||||
var createButton = element(by.cssContainingText("button span", "Create"));
|
||||
var cancelButton = element(by.cssContainingText("button span", "Cancel"));
|
||||
var folderNameField = element(by.id('adf-folder-name-input'));
|
||||
var folderDescriptionField = element(by.id('adf-folder-description-input'));
|
||||
var createButton = element(by.id('adf-folder-create-button'));
|
||||
var cancelButton = element(by.id('adf-folder-cancel-button'));
|
||||
|
||||
this.clickOnCreateButton = function () {
|
||||
Util.waitUntilElementIsVisible(createButton);
|
||||
@@ -30,6 +30,16 @@ var CreateFolderDialog = function () {
|
||||
return this;
|
||||
};
|
||||
|
||||
this.checkCreateBtnIsDisabled = function () {
|
||||
Util.waitUntilElementIsVisible(createButton.getAttribute("disabled"));
|
||||
return this;
|
||||
};
|
||||
|
||||
this.checkCreateBtnIsEnabled = function () {
|
||||
createButton.isEnabled();
|
||||
return this;
|
||||
};
|
||||
|
||||
this.clickOnCancelButton = function () {
|
||||
Util.waitUntilElementIsVisible(cancelButton);
|
||||
cancelButton.click();
|
||||
@@ -38,13 +48,14 @@ var CreateFolderDialog = function () {
|
||||
|
||||
this.addFolderName = function (folderName) {
|
||||
Util.waitUntilElementIsVisible(folderNameField);
|
||||
folderNameField.sendKeys(folderName);
|
||||
folderNameField.clear().sendKeys(folderName);
|
||||
browser.driver.sleep(500);
|
||||
return this;
|
||||
};
|
||||
|
||||
this.addFolderDescription = function (folderDescription) {
|
||||
Util.waitUntilElementIsVisible(folderDescriptionField);
|
||||
folderDescriptionField.sendKeys(folderDescription);
|
||||
folderDescriptionField.clear().sendKeys(folderDescription);
|
||||
return this;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user