diff --git a/tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts b/tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts index d8f6a2e6c7..74be504902 100644 --- a/tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts +++ b/tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts @@ -49,8 +49,10 @@ export class SelectOptionCellPageObject extends BasePage { await selectOption.click(); } - if (multiSelect) await this.get({ index, columnHeader }).click(); - + if (multiSelect) { + // Press `Escape` to close the dropdown + await this.rootPage.keyboard.press('Escape'); + } await this.rootPage .getByTestId(`select-option-${columnHeader}-${index}`) .getByText(option) diff --git a/tests/playwright/pages/Dashboard/common/Cell/UserOptionCell.ts b/tests/playwright/pages/Dashboard/common/Cell/UserOptionCell.ts index 8b6398f5c6..8fe005492c 100644 --- a/tests/playwright/pages/Dashboard/common/Cell/UserOptionCell.ts +++ b/tests/playwright/pages/Dashboard/common/Cell/UserOptionCell.ts @@ -47,7 +47,10 @@ export class UserOptionCellPageObject extends BasePage { await selectOption.click(); } - if (multiSelect) await this.get({ index, columnHeader }).click(); + if (multiSelect) { + // Press `Escape` to close the dropdown + await this.rootPage.keyboard.press('Escape'); + } await this.rootPage .getByTestId(`select-option-${columnHeader}-${index}`)