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 63eeac47856..39d4890b2a7 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/common/common.js +++ b/openmetadata-ui/src/main/resources/ui/cypress/common/common.js @@ -744,7 +744,7 @@ export const editCreatedProperty = (propertyName) => { verifyResponseStatusCode('@checkPatchForDescription', 200); - cy.get('.tw-modal-container').should('not.exist'); + cy.get('.ant-modal-wrap').should('not.exist'); //Fetching for updated descriptions for the created custom property cy.get(`[data-row-key="${propertyName}"]`).find('[data-testid="viewer-container"]').should('contain', 'This is new description'); diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Glossary.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Glossary.spec.js index c4aeed7f13a..dbfc1fccfad 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Glossary.spec.js +++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Glossary.spec.js @@ -245,7 +245,7 @@ describe('Glossary page should work properly', () => { // updating description cy.get('[data-testid="edit-description"]').should('be.visible').click(); - cy.get('.tw-modal-container').should('be.visible'); + cy.get('.ant-modal-wrap').should('be.visible'); cy.get(descriptionBox).should('be.visible').as('description'); cy.get('@description').clear(); @@ -254,7 +254,7 @@ describe('Glossary page should work properly', () => { interceptURL('PATCH', '/api/v1/glossaries/*', 'saveGlossary'); cy.get('[data-testid="save"]').click(); - cy.get('.tw-modal-container').should('not.exist'); + cy.get('.ant-modal-wrap').should('not.exist'); verifyResponseStatusCode('@saveGlossary', 200); @@ -298,7 +298,7 @@ describe('Glossary page should work properly', () => { // updating description cy.get('[data-testid="edit-description"]').should('be.visible').click(); - cy.get('.tw-modal-container').should('be.visible'); + cy.get('.ant-modal-wrap').should('be.visible'); cy.get('.toastui-editor-md-container > .toastui-editor > .ProseMirror') .should('be.visible') .as('description'); @@ -306,7 +306,7 @@ describe('Glossary page should work properly', () => { cy.get('@description').type(newDescription); cy.get('[data-testid="save"]').click(); verifyResponseStatusCode('@saveData', 200); - cy.get('.tw-modal-container').should('not.exist'); + cy.get('.ant-modal-wrap').should('not.exist'); cy.get('[data-testid="viewer-container"]') .contains(newDescription)