fix: playwright form view select field dblClick issue

This commit is contained in:
Ramesh Mane
2024-01-04 06:16:41 +00:00
parent c12d868a43
commit e0a1d227ee
3 changed files with 5 additions and 4 deletions

View File

@@ -41,11 +41,11 @@ export class UserOptionCellPageObject extends BasePage {
if (index === -1) {
const selectOption = this.rootPage.getByTestId(`select-option-${columnHeader}-undefined`).getByText(option);
await selectOption.waitFor({ state: 'visible' });
await selectOption.scrollIntoViewIfNeeded();
await selectOption.click();
} else {
const selectOption = this.rootPage.getByTestId(`select-option-${columnHeader}-${index}`).getByText(option);
await selectOption.waitFor({ state: 'visible' });
await selectOption.scrollIntoViewIfNeeded();
await selectOption.click();
}