Browse Source

test: poll for count

pull/6424/head
DarkPhoenix2704 11 months ago
parent
commit
bbbaae7b82
  1. 3
      tests/playwright/pages/Dashboard/Grid/Column/LTAR/LinkRecord.ts

3
tests/playwright/pages/Dashboard/Grid/Column/LTAR/LinkRecord.ts

@ -24,8 +24,7 @@ export class LinkRecord extends BasePage {
{
const childList = linkRecord.getByTestId(`nc-excluded-list-item`);
const childCards = await childList.count();
expect(childCards).toEqual(cardTitle.length);
expect.poll(() => linkRecord.getByTestId(`nc-excluded-list-item`).count()).toBe(cardTitle.length);
for (let i = 0; i < cardTitle.length; i++) {
await childList.nth(i).locator('.nc-display-value').scrollIntoViewIfNeeded();
await childList.nth(i).locator('.nc-display-value').waitFor({ state: 'visible' });

Loading…
Cancel
Save