diff --git a/tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts b/tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts index 44d1ee7ba6..a0ba68158b 100644 --- a/tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts +++ b/tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts @@ -47,11 +47,11 @@ export class SelectOptionCellPageObject extends BasePage { if (index === -1) { const selectOption = this.rootPage.getByTestId(`select-option-${columnHeader}-undefined`).getByText(option); - await selectOption.scrollIntoViewIfNeeded(); + await selectOption.waitFor({ state: 'visible' }); await selectOption.click(); } else { const selectOption = this.rootPage.getByTestId(`select-option-${columnHeader}-${index}`).getByText(option); - await selectOption.scrollIntoViewIfNeeded(); + await selectOption.waitFor({ state: 'visible' }); await selectOption.click(); } diff --git a/tests/playwright/pages/Dashboard/common/Cell/UserOptionCell.ts b/tests/playwright/pages/Dashboard/common/Cell/UserOptionCell.ts index 56e84ab968..d24ba322cd 100644 --- a/tests/playwright/pages/Dashboard/common/Cell/UserOptionCell.ts +++ b/tests/playwright/pages/Dashboard/common/Cell/UserOptionCell.ts @@ -41,11 +41,11 @@ export class UserOptionCellPageObject extends BasePage { if (index === -1) { const selectOption = this.rootPage.getByTestId(`select-option-${columnHeader}-undefined`).getByText(option); - await selectOption.scrollIntoViewIfNeeded(); + await selectOption.waitFor({ state: 'visible' }); await selectOption.click(); } else { const selectOption = this.rootPage.getByTestId(`select-option-${columnHeader}-${index}`).getByText(option); - await selectOption.scrollIntoViewIfNeeded(); + await selectOption.waitFor({ state: 'visible' }); await selectOption.click(); }