Browse Source

test: null check correction

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5106/head
Raju Udava 2 years ago
parent
commit
09ae63cc22
  1. 2
      tests/playwright/pages/Dashboard/common/Cell/index.ts

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

@ -118,9 +118,11 @@ export class CellPageObject extends BasePage {
}).allInnerTexts();
const cellText = typeof innerTexts === 'string' ? [innerTexts] : innerTexts;
if (cellText) {
if (cellText.includes(text) || cellText[0].includes(text)) {
return;
}
}
await this.rootPage.waitForTimeout(1000);
count++;
if (count === 5) throw new Error(`Cell text ${text} not found`);

Loading…
Cancel
Save