mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-4578] Fix for datatable e2e-s (#2511)
This commit is contained in:
@@ -1,11 +1,4 @@
|
|||||||
{
|
{
|
||||||
"C589205": "https://alfresco.atlassian.net/browse/ACA-4353",
|
"C589205": "https://alfresco.atlassian.net/browse/ACA-4353",
|
||||||
"C261153": "https://alfresco.atlassian.net/browse/AAE-7517",
|
"C261153": "https://alfresco.atlassian.net/browse/AAE-7517"
|
||||||
|
|
||||||
"C213171": "https://alfresco.atlassian.net/browse/ACA-4578",
|
|
||||||
"C213115": "https://alfresco.atlassian.net/browse/ACA-4578",
|
|
||||||
"C261138": "https://alfresco.atlassian.net/browse/ACA-4578",
|
|
||||||
"C261139": "https://alfresco.atlassian.net/browse/ACA-4578",
|
|
||||||
"C261147": "https://alfresco.atlassian.net/browse/ACA-4578",
|
|
||||||
"C213219": "https://alfresco.atlassian.net/browse/ACA-4578"
|
|
||||||
}
|
}
|
||||||
|
@@ -34,8 +34,8 @@ export class DataTable extends Component {
|
|||||||
private static selectors = {
|
private static selectors = {
|
||||||
columnHeader: '.adf-datatable-row .adf-datatable-cell-header .adf-datatable-cell-value',
|
columnHeader: '.adf-datatable-row .adf-datatable-cell-header .adf-datatable-cell-value',
|
||||||
sortedColumnHeader: `
|
sortedColumnHeader: `
|
||||||
.adf-datatable__header--sorted-asc .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-value
|
.adf-datatable__header--sorted-desc .adf-datatable-cell-header-content .adf-datatable-cell-value
|
||||||
`,
|
`,
|
||||||
row: '.adf-datatable-row[data-automation-id^="datatable-row"]',
|
row: '.adf-datatable-row[data-automation-id^="datatable-row"]',
|
||||||
cell: '.adf-datatable-cell-container',
|
cell: '.adf-datatable-cell-container',
|
||||||
@@ -127,7 +127,7 @@ export class DataTable extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getSortingOrder(): Promise<string> {
|
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')) {
|
if (str.includes('asc')) {
|
||||||
return 'asc';
|
return 'asc';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user