|
|
@ -66,9 +66,9 @@ export class GridPage extends BasePage { |
|
|
|
.locator(`span[title="${columnHeader}"]`) |
|
|
|
.locator(`span[title="${columnHeader}"]`) |
|
|
|
.click(); |
|
|
|
.click(); |
|
|
|
|
|
|
|
|
|
|
|
await this.rootPage.waitForResponse(async (res) => { |
|
|
|
await this.rootPage.waitForResponse(async (res) => { |
|
|
|
return (await res.json())[columnHeader] === value; |
|
|
|
return (await res.json())[columnHeader] === value; |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async verifyRow({ index }: { index: number }) { |
|
|
|
async verifyRow({ index }: { index: number }) { |
|
|
@ -162,6 +162,11 @@ export class GridPage extends BasePage { |
|
|
|
|
|
|
|
|
|
|
|
async clickPagination({ page }: { page: string }) { |
|
|
|
async clickPagination({ page }: { page: string }) { |
|
|
|
(await this.pagination({ page })).click(); |
|
|
|
(await this.pagination({ page })).click(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await this.rootPage.waitForResponse(async (res) => { |
|
|
|
|
|
|
|
return (await res.json())?.pageInfo; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
await this.waitLoading(); |
|
|
|
await this.waitLoading(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|