From 825d561164ba014cc99ca5424c5e8c2ea9b8a2c7 Mon Sep 17 00:00:00 2001 From: Ashish Gupta Date: Wed, 8 Nov 2023 15:51:38 +0530 Subject: [PATCH 1/4] fix search in roles input in user profile page --- .../cypress/e2e/Pages/SearchIndexDetails.spec.js | 4 +++- .../CreateUser/CreateUser.component.tsx | 5 ++--- .../EntityLineage/CustomControls.component.tsx | 11 +---------- .../UserProfileRoles.component.tsx | 3 +++ .../main/resources/ui/src/utils/CommonUtils.tsx | 15 +++++++++++++++ 5 files changed, 24 insertions(+), 14 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/SearchIndexDetails.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/SearchIndexDetails.spec.js index ac9858c36332..85e64da8095c 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/SearchIndexDetails.spec.js +++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/SearchIndexDetails.spec.js @@ -257,7 +257,9 @@ describe('Prerequisite for data steward role tests', () => { cy.get('[data-testid="edit-roles-button"]').click(); - cy.get('[data-testid="inline-edit-container"] #select-role').click(); + cy.get('[data-testid="inline-edit-container"] #select-role') + .click() + .type(role.name); cy.get(`[title=${role.name}]`).click(); diff --git a/openmetadata-ui/src/main/resources/ui/src/components/CreateUser/CreateUser.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/CreateUser/CreateUser.component.tsx index e9b202d44a9f..c5db3d8ee6a1 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/CreateUser/CreateUser.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/CreateUser/CreateUser.component.tsx @@ -37,6 +37,7 @@ import { EntityReference } from '../../generated/entity/type'; import { AuthProvider } from '../../generated/settings/settings'; import { checkEmailInUse, generateRandomPwd } from '../../rest/auth-API'; import { getJWTTokenExpiryOptions } from '../../utils/BotsUtils'; +import { handleSearchFilterOption } from '../../utils/CommonUtils'; import { getEntityName } from '../../utils/EntityUtils'; import SVGIcons, { Icons } from '../../utils/SvgUtils'; import { showErrorToast } from '../../utils/ToastUtils'; @@ -346,9 +347,7 @@ const CreateUser = ({