Browse Source

test: fix for select field filter failure in CI

pull/7398/head
Raju Udava 6 months ago
parent
commit
1b26f3d72f
  1. 9
      tests/playwright/pages/Dashboard/common/Toolbar/Filter.ts

9
tests/playwright/pages/Dashboard/common/Toolbar/Filter.ts

@ -288,8 +288,7 @@ export class ToolbarFilterPage extends BasePage {
.click();
break;
case UITypes.MultiSelect:
await this.get().locator('.nc-filter-value-select').waitFor();
await this.get().locator('.nc-filter-value-select').click();
await this.get().locator('.nc-filter-value-select').locator('.ant-select-arrow').click({ force: true });
// eslint-disable-next-line no-case-declarations
const v = value.split(',');
for (let i = 0; i < v.length; i++) {
@ -300,8 +299,7 @@ export class ToolbarFilterPage extends BasePage {
}
break;
case UITypes.SingleSelect:
await this.get().locator('.nc-filter-value-select').waitFor();
await this.get().locator('.nc-filter-value-select').click();
await this.get().locator('.nc-filter-value-select').locator('.ant-select-arrow').click({ force: true });
// check if value was an array
// eslint-disable-next-line no-case-declarations
const val = value.split(',');
@ -321,8 +319,7 @@ export class ToolbarFilterPage extends BasePage {
break;
case UITypes.User:
if (!['is blank', 'is not blank'].includes(operation)) {
await this.get().locator('.nc-filter-value-select').waitFor();
await this.get().locator('.nc-filter-value-select').click();
await this.get().locator('.nc-filter-value-select').locator('.ant-select-arrow').click({ force: true });
const v = value.split(',');
for (let i = 0; i < v.length; i++) {

Loading…
Cancel
Save