From d7e22285c41a47a7f63d042db19650b17025f14c Mon Sep 17 00:00:00 2001 From: Aleksander Sklorz Date: Sun, 10 Dec 2023 20:53:45 +0100 Subject: [PATCH] ACS-6323 Fixed e2e --- .../aca-testing-shared/src/components/data-table/data-table.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/aca-testing-shared/src/components/data-table/data-table.ts b/projects/aca-testing-shared/src/components/data-table/data-table.ts index 0579821fdf..372d5871ba 100755 --- a/projects/aca-testing-shared/src/components/data-table/data-table.ts +++ b/projects/aca-testing-shared/src/components/data-table/data-table.ts @@ -85,7 +85,8 @@ export class DataTable extends Component { getColumnHeaderByLabel(label: string): ElementFinder { const locator = by.cssContainingText(DataTable.selectors.columnHeader, label); - return this.head.element(locator).element(by.xpath('ancestor::div[contains(@class, "adf-datatable-cell-header-content")]')); + return this.head.element(locator).element(by.xpath('ancestor::div[contains(@class, "adf-datatable-cell-header")]')) + .element(by.css('[data-automation-id="adf-datatable-cell-header-drag-icon-name"]')); } async sortBy(label: string, order: 'asc' | 'desc'): Promise {