mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-08-07 17:48:27 +00:00
[ACS-6799] Search sorting tests migrated to Playwright (#3705)
* [ACS-6799] search sorting migrated to Playwright * [ACS-6799] review fixes 1 * [ACS-6799] cloudflare fix 1 * [ACS-6799] cloudflare fix 2 * [ACS-6799] review fixed 2 * [ACS-6799] sonarcloud fix 3
This commit is contained in:
@@ -78,6 +78,13 @@ export class DataTableComponent extends BaseComponent {
|
||||
getRowByColumnTitleAndItsCellValue = (columnTitle: string, cellValue: string | number): Locator =>
|
||||
this.page.locator(`//div[contains(@title, '${columnTitle}')]//span[contains(text(), '${cellValue}')]/ancestor::adf-datatable-row`);
|
||||
|
||||
/**
|
||||
* Method used in cases where we want to retrieve a row from the datatable based on its numerical order within the array.
|
||||
*
|
||||
* @returns reference to cell element which contains text.
|
||||
*/
|
||||
getNthRow = (orderNum: number): Locator => this.getRowLocator.nth(orderNum);
|
||||
|
||||
/**
|
||||
* Method used in cases where user have possibility to navigate "inside" the element (it's clickable and has link attribute).
|
||||
* Perform action .click() to navigate inside it
|
||||
|
Reference in New Issue
Block a user