From 2333dd51a0a0876b562d6671cf778aa7c112428d Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Fri, 27 Oct 2023 14:32:48 +0100 Subject: [PATCH 1/2] fix linting --- .../src/lib/protractor/core/pages/data-table-component.page.ts | 2 +- .../lib/protractor/process-services-cloud/actions/project.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/testing/src/lib/protractor/core/pages/data-table-component.page.ts b/lib/testing/src/lib/protractor/core/pages/data-table-component.page.ts index bfad8205e71..534ae9b7373 100644 --- a/lib/testing/src/lib/protractor/core/pages/data-table-component.page.ts +++ b/lib/testing/src/lib/protractor/core/pages/data-table-component.page.ts @@ -230,7 +230,7 @@ export class DataTableComponentPage { let columnValues: string[] = []; const columnLocator = $$(`adf-datatable div[class*='adf-datatable-body'] adf-datatable-row[class*='adf-datatable-row'] div[title="${column}"] span`); - await BrowserVisibility.waitUntilElementIsPresent(await columnLocator.first(), 1000); + await BrowserVisibility.waitUntilElementIsPresent(columnLocator.first(), 1000); try { await BrowserVisibility.waitUntilElementIsPresent(columnLocator.first(), 1000); columnValues = await columnLocator diff --git a/lib/testing/src/lib/protractor/process-services-cloud/actions/project.ts b/lib/testing/src/lib/protractor/process-services-cloud/actions/project.ts index 2a91a729624..c616aee2e31 100644 --- a/lib/testing/src/lib/protractor/process-services-cloud/actions/project.ts +++ b/lib/testing/src/lib/protractor/process-services-cloud/actions/project.ts @@ -99,7 +99,7 @@ export class Project { } async import(projectFilePath: string): Promise { - const fileContent = await fs.createReadStream(projectFilePath); + const fileContent = fs.createReadStream(projectFilePath); const requestOptions: E2eRequestApiHelperOptions = { formParams: { file: fileContent }, contentTypes: ['multipart/form-data'] From daa233c2fc6a1324b87542cb62d0d08e23b89104 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Fri, 27 Oct 2023 14:50:39 +0100 Subject: [PATCH 2/2] fix linting --- .../src/lib/protractor/core/pages/data-table-component.page.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/testing/src/lib/protractor/core/pages/data-table-component.page.ts b/lib/testing/src/lib/protractor/core/pages/data-table-component.page.ts index 534ae9b7373..0b18daf765e 100644 --- a/lib/testing/src/lib/protractor/core/pages/data-table-component.page.ts +++ b/lib/testing/src/lib/protractor/core/pages/data-table-component.page.ts @@ -461,7 +461,7 @@ export class DataTableComponentPage { async clickRowByContentCheckbox(name: string): Promise { const resultElement = this.rootElement.$$(`div[data-automation-id='${name}']`).first().element(by.xpath(`ancestor::adf-datatable-row/label/mat-checkbox`)); - await browser.actions().mouseMove(resultElement); + browser.actions().mouseMove(resultElement); await BrowserActions.click(resultElement); }