Browse Source

fix: multiselect type fields playwright test fail issue

pull/7348/head
Ramesh Mane 10 months ago
parent
commit
387217374f
  1. 6
      tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts
  2. 5
      tests/playwright/pages/Dashboard/common/Cell/UserOptionCell.ts

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

@ -49,8 +49,10 @@ export class SelectOptionCellPageObject extends BasePage {
await selectOption.click();
}
if (multiSelect) await this.get({ index, columnHeader }).click();
if (multiSelect) {
// Press `Escape` to close the dropdown
await this.rootPage.keyboard.press('Escape');
}
await this.rootPage
.getByTestId(`select-option-${columnHeader}-${index}`)
.getByText(option)

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

@ -47,7 +47,10 @@ export class UserOptionCellPageObject extends BasePage {
await selectOption.click();
}
if (multiSelect) await this.get({ index, columnHeader }).click();
if (multiSelect) {
// Press `Escape` to close the dropdown
await this.rootPage.keyboard.press('Escape');
}
await this.rootPage
.getByTestId(`select-option-${columnHeader}-${index}`)

Loading…
Cancel
Save