From 0bb9c05b7b94233aa2e81e4adda3048903787eb9 Mon Sep 17 00:00:00 2001 From: Aleksander Sklorz Date: Sun, 10 Dec 2023 20:54:34 +0100 Subject: [PATCH] ACS-6323 Fixed e2e --- .../src/components/data-table/data-table.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 372d5871ba..c5bb3e568c 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 @@ -40,7 +40,8 @@ export class DataTable extends Component { cell: '.adf-datatable-cell-container', lockOwner: '.aca-locked-by', searchResultsRow: 'aca-search-results-row', - searchResultsRowLine: 'span' + searchResultsRowLine: 'span', + dragIcon: '[data-automation-id="adf-datatable-cell-header-drag-icon-name"]' }; head = this.byCss('.adf-datatable-header'); @@ -86,7 +87,7 @@ 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")]')) - .element(by.css('[data-automation-id="adf-datatable-cell-header-drag-icon-name"]')); + .element(by.css(DataTable.selectors.dragIcon)); } async sortBy(label: string, order: 'asc' | 'desc'): Promise {