From 1a10890092f6d470277e8109c8bf07377f184ffd Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Fri, 29 Dec 2023 02:56:32 +0530 Subject: [PATCH] fix: select default user test issue --- .../pages/Dashboard/Grid/Column/UserOptionColumn.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/playwright/pages/Dashboard/Grid/Column/UserOptionColumn.ts b/tests/playwright/pages/Dashboard/Grid/Column/UserOptionColumn.ts index 52feb78846..c58d661a85 100644 --- a/tests/playwright/pages/Dashboard/Grid/Column/UserOptionColumn.ts +++ b/tests/playwright/pages/Dashboard/Grid/Column/UserOptionColumn.ts @@ -57,14 +57,14 @@ export class UserOptionColumnPageObject extends BasePage { for (const op of optionsToSelect) { await this.selectOption({ option: op }); } + + // Press `Escape` to close the dropdown + await this.rootPage.keyboard.press('Escape'); + await this.rootPage.locator('.nc-dropdown-user-select-cell').waitFor({ state: 'hidden' }); } else if (!Array.isArray(option)) { await this.selectOption({ option }); } - // Press `Escape` to close the dropdown - await this.rootPage.keyboard.press('Escape'); - await this.rootPage.locator('.nc-dropdown-user-select-cell').waitFor({ state: 'hidden' }); - await this.column.save({ isUpdated: true }); }