From 951a0de370e11122ff4e62d73d2c9ebb20d6f7ca Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Sat, 18 May 2024 17:08:24 +0530 Subject: [PATCH] test: fix user field filter test Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- .../pages/Dashboard/common/Toolbar/Filter.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/tests/playwright/pages/Dashboard/common/Toolbar/Filter.ts b/tests/playwright/pages/Dashboard/common/Toolbar/Filter.ts index a39431fa92..a0986c4d05 100644 --- a/tests/playwright/pages/Dashboard/common/Toolbar/Filter.ts +++ b/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;