|
|
@ -51,6 +51,8 @@ export class UserOptionColumnPageObject extends BasePage { |
|
|
|
const selector = this.column.get().locator('.nc-user-select >> .ant-select-selector'); |
|
|
|
const selector = this.column.get().locator('.nc-user-select >> .ant-select-selector'); |
|
|
|
await selector.click(); |
|
|
|
await selector.click(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await this.rootPage.locator('.nc-dropdown-user-select-cell').waitFor({ state: 'visible' }); |
|
|
|
|
|
|
|
|
|
|
|
if (multiSelect) { |
|
|
|
if (multiSelect) { |
|
|
|
const optionsToSelect = Array.isArray(option) ? option : [option]; |
|
|
|
const optionsToSelect = Array.isArray(option) ? option : [option]; |
|
|
|
|
|
|
|
|
|
|
@ -60,11 +62,12 @@ export class UserOptionColumnPageObject extends BasePage { |
|
|
|
|
|
|
|
|
|
|
|
// 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' }); |
|
|
|
|
|
|
|
} else if (!Array.isArray(option)) { |
|
|
|
} else if (!Array.isArray(option)) { |
|
|
|
await this.selectOption({ option }); |
|
|
|
await this.selectOption({ option }); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await this.rootPage.locator('.nc-dropdown-user-select-cell').waitFor({ state: 'hidden' }); |
|
|
|
|
|
|
|
|
|
|
|
await this.column.save({ isUpdated: true }); |
|
|
|
await this.column.save({ isUpdated: true }); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -91,6 +94,8 @@ export class UserOptionColumnPageObject extends BasePage { |
|
|
|
|
|
|
|
|
|
|
|
await this.column.get().locator('.nc-cell-user > .nc-user-select').click(); |
|
|
|
await this.column.get().locator('.nc-cell-user > .nc-user-select').click(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await this.rootPage.locator('.nc-dropdown-user-select-cell').waitFor({ state: 'visible' }); |
|
|
|
|
|
|
|
|
|
|
|
expect(await this.rootPage.getByTestId(`select-option-${columnTitle}-undefined`).count()).toEqual(totalCount); |
|
|
|
expect(await this.rootPage.getByTestId(`select-option-${columnTitle}-undefined`).count()).toEqual(totalCount); |
|
|
|
await this.column.get().locator('.nc-cell-user').click(); |
|
|
|
await this.column.get().locator('.nc-cell-user').click(); |
|
|
|
|
|
|
|
|
|
|
|