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