diff --git a/e2e/protractor.excludes.json b/e2e/protractor.excludes.json index 218f701f58..2cd61e8d20 100644 --- a/e2e/protractor.excludes.json +++ b/e2e/protractor.excludes.json @@ -4,5 +4,6 @@ "C279932": "login problem APS not basic", "C279931": "login problem APS not basic", "C279930": "login problem APS not basic", - "C593560": "https://alfresco.atlassian.net/browse/ADF-5366" + "C593560": "https://alfresco.atlassian.net/browse/ADF-5366", + "C290069": "https://alfresco.atlassian.net/browse/ADF-5387" } diff --git a/lib/testing/src/lib/core/pages/form/widgets/attach-file-widget.page.ts b/lib/testing/src/lib/core/pages/form/widgets/attach-file-widget.page.ts index 05330d1a01..791538a8fc 100644 --- a/lib/testing/src/lib/core/pages/form/widgets/attach-file-widget.page.ts +++ b/lib/testing/src/lib/core/pages/form/widgets/attach-file-widget.page.ts @@ -47,16 +47,16 @@ export class AttachFileWidgetPage { await BrowserVisibility.waitUntilElementIsNotVisible(fileItem); } - async checkFileIsAttached(fieldId, name): Promise { + async checkFileIsAttached(fieldId: string, name: string): Promise { const widget = await this.formFields.getWidget(fieldId); const fileAttached = widget.element(this.filesListLocator).element(by.cssContainingText('mat-list-item span ', name)); await BrowserVisibility.waitUntilElementIsVisible(fileAttached); } - async checkFilesAreAttachedToWidget(fieldId, name): Promise { - await name.forEach(async fileName => { + async checkFilesAreAttachedToWidget(fieldId: string, names: string[]): Promise { + for (const fileName of names) { await this.checkFileIsAttached(fieldId, fileName); - }); + } } async checkFileIsNotAttached(fieldId, name): Promise {