From 9a002879d0b91628028a8d57251d218a491c3b10 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Sat, 11 Feb 2023 16:32:06 +0530 Subject: [PATCH] test: retry logic correction Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- tests/playwright/pages/Dashboard/common/Cell/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/playwright/pages/Dashboard/common/Cell/index.ts b/tests/playwright/pages/Dashboard/common/Cell/index.ts index 855fb13048..6dea2446a7 100644 --- a/tests/playwright/pages/Dashboard/common/Cell/index.ts +++ b/tests/playwright/pages/Dashboard/common/Cell/index.ts @@ -119,7 +119,7 @@ export class CellPageObject extends BasePage { const cellText = typeof innerTexts === 'string' ? [innerTexts] : innerTexts; if (cellText) { - if (cellText.includes(text) || cellText[0].includes(text)) { + if (cellText?.includes(text) || cellText[0]?.includes(text)) { return; } }