|
|
|
@ -39,9 +39,15 @@ export class SelectOptionCellPageObject extends BasePage {
|
|
|
|
|
|
|
|
|
|
await selectCell.click(); |
|
|
|
|
|
|
|
|
|
if (index === -1) |
|
|
|
|
await this.rootPage.getByTestId(`select-option-${columnHeader}-undefined`).getByText(option).click(); |
|
|
|
|
else await this.rootPage.getByTestId(`select-option-${columnHeader}-${index}`).getByText(option).click(); |
|
|
|
|
if (index === -1) { |
|
|
|
|
const selectOption = this.rootPage.getByTestId(`select-option-${columnHeader}-undefined`).getByText(option); |
|
|
|
|
await selectOption.waitFor({ state: 'visible' }); |
|
|
|
|
await selectOption.click(); |
|
|
|
|
} else { |
|
|
|
|
const selectOption = this.rootPage.getByTestId(`select-option-${columnHeader}-${index}`).getByText(option); |
|
|
|
|
await selectOption.waitFor({ state: 'visible' }); |
|
|
|
|
await selectOption.click(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (multiSelect) await this.get({ index, columnHeader }).click(); |
|
|
|
|
|
|
|
|
|