mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4849] [APM-1226] - Automate boolean and number visibility conditions (#5043)
* [ADF-4849] [APM-1226] - Automate boolean and number visibility conditions * PR changes * PR changes * fix e2e and update simpleapp
This commit is contained in:
committed by
Eugenio Romano
parent
7698fb8edb
commit
d02d79c771
@@ -39,6 +39,11 @@ export class FormFields {
|
||||
await BrowserActions.clearSendKeys(fieldElement, value);
|
||||
}
|
||||
|
||||
async clickField(locator, field): Promise<void> {
|
||||
const fieldElement: any = element(locator(field));
|
||||
await BrowserActions.click(fieldElement);
|
||||
}
|
||||
|
||||
async checkWidgetIsVisible(fieldId): Promise<void> {
|
||||
const fieldElement = element.all(by.css(`adf-form-field div[id='field-${fieldId}-container']`)).first();
|
||||
await BrowserVisibility.waitUntilElementIsVisible(fieldElement);
|
||||
|
@@ -91,7 +91,7 @@ export class StartTasksCloudPage {
|
||||
|
||||
async selectFormDefinition(option: string): Promise<void> {
|
||||
await BrowserActions.click(this.formDefinitionSelector);
|
||||
const row = element(by.cssContainingText('mat-option span', option));
|
||||
const row = element(by.xpath(`//mat-option/child::span [text() = '${option}']`));
|
||||
await BrowserActions.click(row);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user