From 19cb20da21e864a358b46ef3deeeb29b8d3c64c8 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Thu, 25 May 2023 08:44:03 +0530 Subject: [PATCH] test: wait for formula cell to render Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- tests/playwright/pages/Dashboard/common/Cell/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/playwright/pages/Dashboard/common/Cell/index.ts b/tests/playwright/pages/Dashboard/common/Cell/index.ts index 3f2a97c681..37d20dc3f7 100644 --- a/tests/playwright/pages/Dashboard/common/Cell/index.ts +++ b/tests/playwright/pages/Dashboard/common/Cell/index.ts @@ -114,6 +114,11 @@ export class CellPageObject extends BasePage { // if text is found, return // if text is not found, throw error let count = 0; + + if (!(this.parent instanceof SharedFormPage)) { + await this.rootPage.locator(`td[data-testid="cell-${columnHeader}-${index}"]`).waitFor({ state: 'visible' }); + } + await this.get({ index, columnHeader,