diff --git a/tests/playwright/pages/Dashboard/common/Cell/index.ts b/tests/playwright/pages/Dashboard/common/Cell/index.ts index 921fbfb2d6..204375dcda 100644 --- a/tests/playwright/pages/Dashboard/common/Cell/index.ts +++ b/tests/playwright/pages/Dashboard/common/Cell/index.ts @@ -31,7 +31,8 @@ export class CellPageObject extends BasePage { } async click({ index, columnHeader }: { index: number; columnHeader: string }) { - return await this.get({ index, columnHeader }).click(); + await this.get({ index, columnHeader }).click(); + await (await this.get({ index, columnHeader }).elementHandle()).waitForElementState('stable'); } async dblclick({ index, columnHeader }: { index?: number; columnHeader: string }) { diff --git a/tests/playwright/tests/keyboardShortcuts.spec.ts b/tests/playwright/tests/keyboardShortcuts.spec.ts index 11dc129cc5..ab70d932d8 100644 --- a/tests/playwright/tests/keyboardShortcuts.spec.ts +++ b/tests/playwright/tests/keyboardShortcuts.spec.ts @@ -66,6 +66,7 @@ test.describe('Verify shortcuts', () => { await dashboard.treeView.openTable({ title: 'Country' }); await page.waitForTimeout(1500); await grid.cell.click({ index: 0, columnHeader: 'Country' }); + await page.waitForTimeout(1500); await page.keyboard.press('Meta+ArrowRight'); await grid.cell.verifyCellActiveSelected({ index: 0, columnHeader: 'City List' });