[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:
Adam Świderski
2024-03-14 12:13:03 +01:00
committed by GitHub
parent e54854e052
commit 8512e42ece
10 changed files with 275 additions and 777 deletions

View File

@@ -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