Browse Source

test: fix user field filter test

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/8521/head
Raju Udava 6 months 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(','); const v = value.split(',');
for (let i = 0; i < v.length; i++) { for (let i = 0; i < v.length; i++) {
await this.rootPage const selectUser = () =>
.locator(`.nc-dropdown-user-select-cell`) this.rootPage
.getByTestId('select-option-User-filter') .locator(`.nc-dropdown-user-select-cell`)
.getByText(v[i]) .getByTestId('select-option-User-filter')
.click({ force: true }); .getByText(v[i])
.click({ force: true });
await this.waitForResponse({
uiAction: selectUser,
httpMethodsToMatch: ['GET'],
requestUrlPathToMatch: `/api/v1/db/data/noco/`,
});
} }
} }
break; break;

Loading…
Cancel
Save