Browse Source

test: fix poll

pull/6424/head
DarkPhoenix2704 11 months ago
parent
commit
2b83d15f7b
  1. 3
      tests/playwright/pages/Dashboard/common/Cell/index.ts

3
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();

Loading…
Cancel
Save