mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-3715]Refactor search filters page (#3933)
* Add tests for text widget * Propose refactor search filters component * Fix lint errors * [ADF-3715]Refactor searchFiltersPage * Change describe * Replaced use of searchDialog with browser.get * Added a test case * Modifications to enterConfiguration method * Create a new method enterBigConfigurationText * Fix lint issues * no message
This commit is contained in:
committed by
Eugenio Romano
parent
ca3e1035fa
commit
a6cd910466
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { element, by } from 'protractor';
|
||||
import { element, by, browser } from 'protractor';
|
||||
import Util = require('../../util/util');
|
||||
|
||||
export class ConfigEditorPage {
|
||||
@@ -27,6 +27,13 @@ export class ConfigEditorPage {
|
||||
return this;
|
||||
}
|
||||
|
||||
enterBigConfigurationText(text) {
|
||||
let textField = element(by.css('#adf-code-configuration-editor div.overflow-guard > textarea'));
|
||||
Util.waitUntilElementIsVisible(textField);
|
||||
browser.executeScript('this.monaco.editor.getModels()[0].setValue(`' + text + '`)');
|
||||
return this;
|
||||
}
|
||||
|
||||
clickSaveButton() {
|
||||
let saveButton = element(by.id('adf-configuration-save'));
|
||||
Util.waitUntilElementIsVisible(saveButton);
|
||||
@@ -47,4 +54,11 @@ export class ConfigEditorPage {
|
||||
Util.waitUntilElementIsClickable(button);
|
||||
return button.click();
|
||||
}
|
||||
|
||||
clickSearchConfiguration() {
|
||||
let button = element(by.id('adf-search-conf'));
|
||||
Util.waitUntilElementIsVisible(button);
|
||||
Util.waitUntilElementIsClickable(button);
|
||||
return button.click();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user