Browse Source

test: fix user field filter test

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/8521/head
Raju Udava 1 month ago
parent
commit
951a0de370
  1. 16
      tests/playwright/pages/Dashboard/common/Toolbar/Filter.ts

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

@ -328,11 +328,17 @@ export class ToolbarFilterPage extends BasePage {
const v = value.split(',');
for (let i = 0; i < v.length; i++) {
await this.rootPage
.locator(`.nc-dropdown-user-select-cell`)
.getByTestId('select-option-User-filter')
.getByText(v[i])
.click({ force: true });
const selectUser = () =>
this.rootPage
.locator(`.nc-dropdown-user-select-cell`)
.getByTestId('select-option-User-filter')
.getByText(v[i])
.click({ force: true });
await this.waitForResponse({
uiAction: selectUser,
httpMethodsToMatch: ['GET'],
requestUrlPathToMatch: `/api/v1/db/data/noco/`,
});
}
}
break;

Loading…
Cancel
Save