feat(testing): Added polling to most expect and added stabalization

This commit is contained in:
Muhammed Mustafa
2022-10-28 16:13:26 +05:30
parent 776e678a48
commit 592c94e9d1
25 changed files with 129 additions and 167 deletions

View File

@@ -62,9 +62,7 @@ export class SelectOptionCellPageObject extends BasePage {
let counter = 0;
for (const option of options) {
const optionInDom = await this.rootPage.locator(`div.ant-select-item-option`).nth(counter)
.evaluate((node) => (node as HTMLElement).innerText)
await expect(optionInDom).toBe(option);
await expect(this.rootPage.locator(`div.ant-select-item-option`).nth(counter)).toHaveText(option);
counter++;
}
await this.get({index, columnHeader}).click();