mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[no-issue] fix e2e uploader (#3840)
* fix e2e upload move viewer subbfolder * fix CS services e2e test * add log for error in upload delete * aysnc get node * new tentative * attempt 2 * attempt 3 * new demo shell test travis change for test * excluded file tslint fix * remove desktop only class * renable tests * decrease time notification * add process service multiselect demo test fix e2e * remove log * add custom toolbar example
This commit is contained in:
@@ -20,27 +20,31 @@ import Util = require('../../util/util');
|
||||
|
||||
export class ConfigEditorPage {
|
||||
|
||||
enterMetadataConfiguration(text) {
|
||||
let textField = element(by.css('#adf-metadata-editor div.overflow-guard > textarea'));
|
||||
browser.driver.sleep(1000);
|
||||
enterConfiguration(text) {
|
||||
let textField = element(by.css('#adf-code-configuration-editor div.overflow-guard > textarea'));
|
||||
Util.waitUntilElementIsVisible(textField);
|
||||
textField.sendKeys('');
|
||||
textField.clear();
|
||||
textField.sendKeys(text);
|
||||
return this;
|
||||
}
|
||||
|
||||
clickSaveMetadataButton() {
|
||||
let saveButton = element(by.xpath('//*[@id="adf-metadata-save"]'));
|
||||
clickSaveButton() {
|
||||
let saveButton = element(by.id('adf-configuration-save'));
|
||||
Util.waitUntilElementIsVisible(saveButton);
|
||||
Util.waitUntilElementIsClickable(saveButton);
|
||||
return saveButton.click();
|
||||
}
|
||||
|
||||
clickClearMetadataButton() {
|
||||
let clearButton = element(by.xpath('//*[@id="adf-metadata-clear"]'));
|
||||
clickClearButton() {
|
||||
let clearButton = element(by.id('adf-configuration-clear'));
|
||||
Util.waitUntilElementIsVisible(clearButton);
|
||||
Util.waitUntilElementIsClickable(clearButton);
|
||||
return clearButton.click();
|
||||
}
|
||||
|
||||
clickFileConfiguration() {
|
||||
let button = element(by.id('adf-file-conf'));
|
||||
Util.waitUntilElementIsVisible(button);
|
||||
Util.waitUntilElementIsClickable(button);
|
||||
return button.click();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user