[ACA-4578] Fix for datatable e2e-s (#2511)

This commit is contained in:
Bartosz Sekuła
2022-04-19 16:56:51 +02:00
committed by GitHub
parent d2125e67c8
commit 9689131520
2 changed files with 4 additions and 11 deletions

View File

@@ -34,8 +34,8 @@ export class DataTable extends Component {
private static selectors = {
columnHeader: '.adf-datatable-row .adf-datatable-cell-header .adf-datatable-cell-value',
sortedColumnHeader: `
.adf-datatable__header--sorted-asc .adf-datatable-cell-value,
.adf-datatable__header--sorted-desc .adf-datatable-cell-value
.adf-datatable__header--sorted-asc .adf-datatable-cell-header-content .adf-datatable-cell-value,
.adf-datatable__header--sorted-desc .adf-datatable-cell-header-content .adf-datatable-cell-value
`,
row: '.adf-datatable-row[data-automation-id^="datatable-row"]',
cell: '.adf-datatable-cell-container',
@@ -127,7 +127,7 @@ export class DataTable extends Component {
}
async getSortingOrder(): Promise<string> {
const str = await this.getSortedColumnHeader().element(by.xpath('..')).getAttribute('class');
const str = await this.getSortedColumnHeader().element(by.xpath('../..')).getAttribute('class');
if (str.includes('asc')) {
return 'asc';
}