diff --git a/openmetadata-ui/src/main/resources/ui/cypress/integration/Pages/Glossary.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/integration/Pages/Glossary.spec.js index e0b26661db9..20df30b01bf 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/integration/Pages/Glossary.spec.js +++ b/openmetadata-ui/src/main/resources/ui/cypress/integration/Pages/Glossary.spec.js @@ -201,6 +201,7 @@ describe('Glossary page should work properly', () => { cy.get('@description').type(newDescription); cy.get('[data-testid="save"]').click(); cy.get('.tw-modal-container').should('not.exist'); + cy.wait(1000); cy.get('[data-testid="viewer-container"]') .contains(newDescription) .should('be.visible'); @@ -215,11 +216,11 @@ describe('Glossary page should work properly', () => { cy.wait(500); cy.get('[data-testid="inactive-link"]').contains(term).should('be.visible'); - // updating synonyms - cy.get('[data-testid="edit-synonyms"]') + cy.get('[data-testid="section-synonyms"]') .scrollIntoView() .should('be.visible') .click(); + cy.get('[data-testid="synonyms"]') .scrollIntoView() .should('be.visible') @@ -228,7 +229,7 @@ describe('Glossary page should work properly', () => { cy.get('@synonyms').type(uSynonyms); cy.get('[data-testid="saveAssociatedTag"]').should('be.visible').click(); cy.wait(100); - cy.get('[data-testid="synonyms-card-container"]') + cy.get('[data-testid="synonyms-container"]') .as('synonyms-container') .should('be.visible'); @@ -237,16 +238,17 @@ describe('Glossary page should work properly', () => { }); // updating References - cy.get('[data-testid="edit-referencfe"]').should('exist').click(); + cy.get('[data-testid="section-references"] [data-testid="add-button"]') + .should('exist') + .click(); cy.get('.tw-modal-container').should('be.visible'); - cy.get('[data-testid="references"] > :nth-child(1) > .button-comp') + cy.get('[data-testid="references"] .button-comp') .should('be.visible') .click(); cy.get('#name-1').should('be.visible').type(newRef.name); cy.get('#url-1').should('be.visible').type(newRef.url); cy.get('[data-testid="saveButton"]').should('be.visible').click(); - cy.get('[data-testid="references-card-container"]') - .scrollIntoView() + cy.get('[data-testid="references-container"]') .contains(newRef.name) .should('be.visible') .invoke('attr', 'href') @@ -269,6 +271,7 @@ describe('Glossary page should work properly', () => { .contains('PersonalData.Personal') .should('be.visible'); + cy.wait(1000); // updating description cy.get('[data-testid="edit-description"]').should('be.visible').click(); cy.get('.tw-modal-container').should('be.visible'); @@ -279,6 +282,9 @@ describe('Glossary page should work properly', () => { cy.get('@description').type(newDescription); cy.get('[data-testid="save"]').click(); cy.get('.tw-modal-container').should('not.exist'); + + cy.wait(1000); + cy.get('[data-testid="viewer-container"]') .contains(newDescription) .should('be.visible'); @@ -335,6 +341,7 @@ describe('Glossary page should work properly', () => { const entity = SEARCH_ENTITY_TABLE.table_3.term; // go assets tab goToAssetsTab(term); + cy.wait(1000); cy.get('[data-testid="column"] > :nth-child(1) > a') .contains(entity) .should('be.visible') @@ -354,8 +361,10 @@ describe('Glossary page should work properly', () => { .scrollIntoView() .should('be.visible') .click(); + cy.get('[data-testid="saveAssociatedTag"]').scrollIntoView().click(); + //Remove the added column tag from entity cy.get( ':nth-child(1) > :nth-child(5) > [data-testid="tags-wrapper"] > :nth-child(1) > :nth-child(1) > [data-testid="tag-container"] > div > span.tw-text-primary > [data-testid="tags"]' ) @@ -367,7 +376,6 @@ describe('Glossary page should work properly', () => { .scrollIntoView() .should('be.visible') .click(); - cy.get(':nth-child(1) > .css-xb97g8') .scrollIntoView() .should('be.visible') diff --git a/openmetadata-ui/src/main/resources/ui/src/assets/svg/icon-edit-primary.svg b/openmetadata-ui/src/main/resources/ui/src/assets/svg/icon-edit-primary.svg new file mode 100644 index 00000000000..516012f93d5 --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/src/assets/svg/icon-edit-primary.svg @@ -0,0 +1,4 @@ + diff --git a/openmetadata-ui/src/main/resources/ui/src/assets/svg/icon-plus-primary-outlined.svg b/openmetadata-ui/src/main/resources/ui/src/assets/svg/icon-plus-primary-outlined.svg new file mode 100644 index 00000000000..c706464adb6 --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/src/assets/svg/icon-plus-primary-outlined.svg @@ -0,0 +1,4 @@ + diff --git a/openmetadata-ui/src/main/resources/ui/src/components/AddWebhook/AddWebhook.tsx b/openmetadata-ui/src/main/resources/ui/src/components/AddWebhook/AddWebhook.tsx index 9a807e86282..8723e2d05e3 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/AddWebhook/AddWebhook.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/AddWebhook/AddWebhook.tsx @@ -19,8 +19,7 @@ import cryptoRandomString from 'crypto-random-string-with-promisify-polyfill'; import { cloneDeep, isEqual, isNil } from 'lodash'; import { EditorContentRef } from 'Models'; import React, { FunctionComponent, useCallback, useRef, useState } from 'react'; -import { TERM_ALL } from '../../constants/constants'; -import { ROUTES } from '../../constants/constants'; +import { ROUTES, TERM_ALL } from '../../constants/constants'; import { GlobalSettingOptions, GlobalSettingsMenuCategory, diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Glossary/Glossary.test.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Glossary/Glossary.test.tsx index e3eef57d975..971245418d6 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Glossary/Glossary.test.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Glossary/Glossary.test.tsx @@ -49,7 +49,12 @@ jest.mock('../../components/GlossaryTerms/GlossaryTermsV1.component', () => { return jest.fn().mockReturnValue(<>Glossary-Term component>); }); +jest.mock('../common/title-breadcrumb/title-breadcrumb.component', () => { + return jest.fn().mockReturnValue(<>TitleBreadcrumb>); +}); + jest.mock('antd', () => ({ + Card: jest.fn().mockImplementation(({ children }) =>