mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
[ACA-4474]Add checkWidgetsAreVisible method
* Add checkWidgetsAreVisible method * Add checkNoFileIsAttachedToWidgets()
This commit is contained in:
parent
91d813e6f1
commit
acf4b26d74
@ -49,6 +49,12 @@ export class FormFields {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(fieldElement);
|
||||
}
|
||||
|
||||
async checkWidgetsAreVisible(fieldsId: string[]): Promise<void> {
|
||||
for (const fieldId of fieldsId) {
|
||||
await this.checkWidgetIsVisible(fieldId);
|
||||
}
|
||||
}
|
||||
|
||||
async checkWidgetIsClickable(fieldId: string): Promise<void> {
|
||||
const fieldElement = element.all(by.css(`adf-form-field div[id='field-${fieldId}-container']`)).first();
|
||||
await BrowserVisibility.waitUntilElementIsClickable(fieldElement);
|
||||
|
@ -47,6 +47,12 @@ export class AttachFileWidgetPage {
|
||||
await BrowserVisibility.waitUntilElementIsNotVisible(fileItem);
|
||||
}
|
||||
|
||||
async checkNoFileIsAttachedToWidgets(fieldIds: string[]): Promise<void> {
|
||||
for (const fieldId of fieldIds) {
|
||||
await this.checkNoFileIsAttached(fieldId);
|
||||
}
|
||||
}
|
||||
|
||||
async checkFileIsAttached(fieldId: string, name: string): Promise<void> {
|
||||
const widget = await this.formFields.getWidget(fieldId);
|
||||
const fileAttached = widget.element(this.filesListLocator).element(by.cssContainingText('mat-list-item span ', name));
|
||||
|
Loading…
x
Reference in New Issue
Block a user