Skip to content

Commit

Permalink
ACS-6323 Fixed e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksanderSklorz committed Dec 10, 2023
1 parent d7e2228 commit 0bb9c05
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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<void> {
Expand Down

0 comments on commit 0bb9c05

Please sign in to comment.