Browse Source

fix: playwright test case fail issue

pull/7348/head
Ramesh Mane 12 months ago
parent
commit
c12d868a43
  1. 4
      tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts
  2. 4
      tests/playwright/pages/Dashboard/common/Cell/UserOptionCell.ts

4
tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts

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

4
tests/playwright/pages/Dashboard/common/Cell/UserOptionCell.ts

@ -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.scrollIntoViewIfNeeded();
await selectOption.waitFor({ state: 'visible' });
await selectOption.click();
} else {
const selectOption = this.rootPage.getByTestId(`select-option-${columnHeader}-${index}`).getByText(option);
await selectOption.scrollIntoViewIfNeeded();
await selectOption.waitFor({ state: 'visible' });
await selectOption.click();
}

Loading…
Cancel
Save