|
|
@ -57,13 +57,13 @@ export class UserOptionColumnPageObject extends BasePage { |
|
|
|
for (const op of optionsToSelect) { |
|
|
|
for (const op of optionsToSelect) { |
|
|
|
await this.selectOption({ option: op }); |
|
|
|
await this.selectOption({ option: op }); |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (!Array.isArray(option)) { |
|
|
|
|
|
|
|
await this.selectOption({ option }); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Press `Escape` to close the dropdown
|
|
|
|
// Press `Escape` to close the dropdown
|
|
|
|
await this.rootPage.keyboard.press('Escape'); |
|
|
|
await this.rootPage.keyboard.press('Escape'); |
|
|
|
await this.rootPage.locator('.nc-dropdown-user-select-cell').waitFor({ state: 'hidden' }); |
|
|
|
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 }); |
|
|
|
await this.column.save({ isUpdated: true }); |
|
|
|
} |
|
|
|
} |
|
|
|