From 7614252ba5469ab6b491ba158c767ffb3ff13c6b Mon Sep 17 00:00:00 2001 From: "akash.rathod@hyland.com" Date: Wed, 27 Dec 2023 13:15:14 +0100 Subject: [PATCH] code fix --- .../components/dataTable/data-table.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/aca-playwright-shared/src/page-objects/components/dataTable/data-table.component.ts b/projects/aca-playwright-shared/src/page-objects/components/dataTable/data-table.component.ts index 95df52d4be..65d6b67b67 100644 --- a/projects/aca-playwright-shared/src/page-objects/components/dataTable/data-table.component.ts +++ b/projects/aca-playwright-shared/src/page-objects/components/dataTable/data-table.component.ts @@ -201,13 +201,13 @@ export class DataTableComponent extends BaseComponent { async goThroughPagesLookingForRowWithName(name: string | number): Promise { await this.spinnerWaitForReload(); - if ((await this.getRowByName(name).isVisible()) || (await this.pagination.totalPageLocator.textContent()) === ' of 1 ') { + if (await this.getRowByName(name).isVisible()) { return null; } if (await this.pagination.currentPageLocator.isVisible()) { - if ((await this.pagination.currentPageLocator.textContent()) !== ' Page 1 ') { - await this.pagination.navigateToPage(1); + if ((await this.pagination.currentPageLocator.textContent()) === ' of 1 ') { + return null; } } if (await this.pagination.totalPageLocator.isVisible()) {