From ac9d94cc8c5d748cd4ebcfdcc57fdf092d42aaf2 Mon Sep 17 00:00:00 2001 From: Shailesh Parmar Date: Thu, 2 Nov 2023 12:21:39 +0530 Subject: [PATCH] cypress: fixed bug of passing undefined instead of entity name --- .../src/main/resources/ui/cypress/common/VersionUtils.js | 2 +- .../resources/ui/cypress/e2e/Features/UpdateDisplayName.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/cypress/common/VersionUtils.js b/openmetadata-ui/src/main/resources/ui/cypress/common/VersionUtils.js index 298de995c810..4d55beff521a 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/common/VersionUtils.js +++ b/openmetadata-ui/src/main/resources/ui/cypress/common/VersionUtils.js @@ -27,7 +27,7 @@ export const visitEntityDetailsVersionPage = ( version ) => { visitEntityDetailsPage({ - term: entityDetails.term, + term: entityDetails.name, serviceName: entityDetails.serviceName, entity: entityDetails.entity, entityType: entityDetails.entityType, diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Features/UpdateDisplayName.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Features/UpdateDisplayName.spec.js index 2b3270b5ad46..355cbd193240 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Features/UpdateDisplayName.spec.js +++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Features/UpdateDisplayName.spec.js @@ -215,7 +215,7 @@ describe('Edit displayName for all the entities, services and verify breadcrumb' Object.values(ENTITIES_DISPLAY_NAME).map((entity) => { it(`${entity.entity}`, () => { visitEntityDetailsPage({ - term: entity.term, + term: entity.name, serviceName: entity.serviceName, entity: entity.entity, });