Skip to content

Commit

Permalink
code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akashrathod28 committed Dec 27, 2023
1 parent d4ddb48 commit 7614252
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,13 @@ export class DataTableComponent extends BaseComponent {

async goThroughPagesLookingForRowWithName(name: string | number): Promise<void> {
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()) {
Expand Down

0 comments on commit 7614252

Please sign in to comment.