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. 6
      tests/playwright/pages/Dashboard/common/Cell/index.ts

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

@ -118,8 +118,10 @@ export class CellPageObject extends BasePage {
}).allInnerTexts(); }).allInnerTexts();
const cellText = typeof innerTexts === 'string' ? [innerTexts] : innerTexts; const cellText = typeof innerTexts === 'string' ? [innerTexts] : innerTexts;
if (cellText.includes(text) || cellText[0].includes(text)) { if (cellText) {
return; if (cellText.includes(text) || cellText[0].includes(text)) {
return;
}
} }
await this.rootPage.waitForTimeout(1000); await this.rootPage.waitForTimeout(1000);
count++; count++;

Loading…
Cancel
Save