From c6ad09b89c0cca9c9b15f6a123c432178fd574f1 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Mon, 24 Jun 2024 08:28:54 +0000 Subject: [PATCH] fix(test): pw test fail issue --- tests/playwright/pages/Dashboard/common/Cell/index.ts | 5 +++++ .../playwright/tests/db/features/verticalFillHandle.spec.ts | 2 ++ 2 files changed, 7 insertions(+) diff --git a/tests/playwright/pages/Dashboard/common/Cell/index.ts b/tests/playwright/pages/Dashboard/common/Cell/index.ts index 7a4828792f..ae11f00517 100644 --- a/tests/playwright/pages/Dashboard/common/Cell/index.ts +++ b/tests/playwright/pages/Dashboard/common/Cell/index.ts @@ -144,6 +144,11 @@ export class CellPageObject extends BasePage { await this.rootPage.locator(`td[data-testid="cell-${columnHeader}-${index}"]`).waitFor({ state: 'visible' }); } + await this.get({ + index, + columnHeader, + }).waitFor({ state: 'visible' }); + await this.get({ index, columnHeader, diff --git a/tests/playwright/tests/db/features/verticalFillHandle.spec.ts b/tests/playwright/tests/db/features/verticalFillHandle.spec.ts index 72bac5c1ec..7991762526 100644 --- a/tests/playwright/tests/db/features/verticalFillHandle.spec.ts +++ b/tests/playwright/tests/db/features/verticalFillHandle.spec.ts @@ -31,6 +31,8 @@ async function dragDrop({ // drag and drop await src.dragTo(dst); + + await params.dashboard.rootPage.waitForTimeout(250); } async function beforeEachInit({ page, tableType }: { page: any; tableType: string }) { const context = await setup({ page, isEmptyProject: true });