[ACS-7364] Changed getRowsCount&getNthRow method not to count header row (#3752)

* Changed getRowsCount method not to count header row

* Removed commented code

* Fixed missing empty line

* Fixed getNthRow method usage
This commit is contained in:
Katarzyna Kita
2024-04-02 14:34:13 +02:00
committed by GitHub
parent 38050d1081
commit e2979410b3
4 changed files with 21 additions and 21 deletions

View File

@@ -57,7 +57,7 @@ export class DataTableComponent extends BaseComponent {
sitesRole = this.page.locator('.adf-datatable-body [data-automation-id*="datatable-row"] [aria-label="My Role"]');
/** Locator for row (or rows) */
getRowLocator = this.getChild(`adf-datatable-row`);
getRowLocator = this.page.getByRole('rowgroup').nth(1).locator('adf-datatable-row');
/** Locator to get "No results found" message */
getNoResultsFoundMessage = this.getChild('adf-custom-empty-content-template', { hasText: 'No results found' });