Browse Source

fix: select default user test issue

pull/7326/head
Ramesh Mane 9 months ago
parent
commit
1a10890092
  1. 6
      tests/playwright/pages/Dashboard/Grid/Column/UserOptionColumn.ts

6
tests/playwright/pages/Dashboard/Grid/Column/UserOptionColumn.ts

@ -57,13 +57,13 @@ export class UserOptionColumnPageObject extends BasePage {
for (const op of optionsToSelect) {
await this.selectOption({ option: op });
}
} 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' });
} else if (!Array.isArray(option)) {
await this.selectOption({ option });
}
await this.column.save({ isUpdated: true });
}

Loading…
Cancel
Save