diff --git a/tests/playwright/pages/Dashboard/common/Cell/index.ts b/tests/playwright/pages/Dashboard/common/Cell/index.ts index 871e49a09c..f04090517b 100644 --- a/tests/playwright/pages/Dashboard/common/Cell/index.ts +++ b/tests/playwright/pages/Dashboard/common/Cell/index.ts @@ -341,8 +341,7 @@ export class CellPageObject extends BasePage { await this.rootPage.waitForSelector('.nc-modal-child-list:visible'); // verify child list count & contents - const childList = this.rootPage.locator('.ant-card:visible'); - expect(await childList.count()).toBe(count); + expect.poll(() => this.rootPage.locator('.ant-card:visible').count()).toBe(count); // close child list await this.rootPage.locator('.nc-modal-child-list').locator('.nc-close-btn').last().click();