diff --git a/openmetadata-ui/src/main/resources/ui/cypress/common/common.js b/openmetadata-ui/src/main/resources/ui/cypress/common/common.js index cdc7261d0c9..91c1b440092 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/common/common.js +++ b/openmetadata-ui/src/main/resources/ui/cypress/common/common.js @@ -1014,9 +1014,12 @@ export const updateOwner = () => { cy.get('[data-testid="hiden-layer"]').should('exist').click(); interceptURL('GET', '/api/v1/users?limit=15', 'getUsers'); // Clicking on edit owner button - cy.get('[data-testid="add-user"]').should('be.visible').click(); + cy.get('[data-testid="edit-owner"]').should('be.visible').click(); + + cy.get('.user-team-select-popover').contains('Users').click(); cy.get('[data-testid="selectable-list"]') + .eq(1) .find(`[title="${text.trim()}"]`) .click(); diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Flow/AddAndRemoveTierAndOwner.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Flow/AddAndRemoveTierAndOwner.spec.js index f8372bd66ce..621edbee792 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Flow/AddAndRemoveTierAndOwner.spec.js +++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Flow/AddAndRemoveTierAndOwner.spec.js @@ -205,14 +205,28 @@ describe('Add and Remove Owner and Tier', () => { verifyResponseStatusCode('@getOrganization', 200); verifyResponseStatusCode('@teamPermission', 200); - cy.get('[data-testid="add-user"]').should('be.visible').click(); - verifyResponseStatusCode('@getUsers', 200); - cy.get(`.ant-popover [title="${OWNER}"]`).should('be.visible').click(); + interceptURL( + 'GET', + 'api/v1/search/query?q=**%20AND%20isBot:false&from=0&size=0&index=user_search_index', + 'waitForUsers' + ); + + // Click on edit owner button + cy.get('[data-testid="edit-owner"]').click(); + verifyResponseStatusCode('@waitForUsers', 200); + + cy.get('.user-team-select-popover').contains('Users').click(); + + cy.get('[data-testid="selectable-list"]') + .eq(1) + .find(`[title="${OWNER}"]`) + .click(); + verifyResponseStatusCode('@patchOwner', 200); cy.get('[data-testid="owner-link"]') .should('be.visible') .should('contain', OWNER); - cy.get('[data-testid="add-user"]').should('be.visible').click(); + cy.get('[data-testid="edit-owner"]').should('be.visible').click(); verifyResponseStatusCode('@getUsers', 200); cy.get('[data-testid="remove-owner"]').should('be.visible').click(); verifyResponseStatusCode('@patchOwner', 200); diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Service.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Service.spec.js index 00d54bcb0c1..3725ecc6c9a 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Service.spec.js +++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Service.spec.js @@ -105,7 +105,6 @@ describe('Services page should work properly', () => { verifyResponseStatusCode('@updateService', 200); - cy.get('[data-testid="owner-dropdown"]').should('have.text', service.Owner); // Checking if description exists after assigning the owner cy.get(':nth-child(1) > .link-title').click(); // need wait here diff --git a/openmetadata-ui/src/main/resources/ui/src/components/EntityLineage/CustomControls.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/EntityLineage/CustomControls.component.tsx index 184ab12a39e..f9a37170d53 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/EntityLineage/CustomControls.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/EntityLineage/CustomControls.component.tsx @@ -148,7 +148,7 @@ const CustomControls: FC = ({ ); @@ -270,8 +270,7 @@ const CustomControls: FC = ({ className={classNames( 'custom-control-edit-button h-8 w-8 rounded-full p-x-xss', { - 'bg-primary': !isEditMode, - 'bg-primary-hover-lite': isEditMode, + 'bg-primary': isEditMode, } )} data-testid="edit-lineage" diff --git a/openmetadata-ui/src/main/resources/ui/src/components/EntityLineage/CustomEdge.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/EntityLineage/CustomEdge.component.tsx index f18e0786d9c..76afaf78bc5 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/EntityLineage/CustomEdge.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/EntityLineage/CustomEdge.component.tsx @@ -122,10 +122,9 @@ export const CustomEdge = ({ return (