Browse Source

test: wait for chip to render before check

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5937/head
Raju Udava 1 year ago
parent
commit
c49b5946b7
  1. 3
      tests/playwright/pages/Dashboard/common/Cell/index.ts

3
tests/playwright/pages/Dashboard/common/Cell/index.ts

@ -288,8 +288,9 @@ export class CellPageObject extends BasePage {
for (let i = 0; i < value.length; ++i) {
await chips.nth(i).locator('.name').waitFor({ state: 'visible' });
await chips.nth(i).locator('.name').scrollIntoViewIfNeeded();
await chips.nth(i).locator('.name').waitFor({ state: 'visible' });
const chipText = await chips.nth(i).locator('.name').textContent();
expect(value.includes(chipText)).toBe(true);
expect(value).toContain(chipText);
}
if (verifyChildList) {

Loading…
Cancel
Save