From 2abe40f08c7afcb52acbf62d074307056d9f07e7 Mon Sep 17 00:00:00 2001 From: Aniket Katkar Date: Sun, 18 Dec 2022 10:31:22 +0530 Subject: [PATCH] Fixed failing cypress for glossary (#9380) * Fixed failing cypress for glossary spec * Removed formatting of spec files for easy review * reverted file formatting for glossary spec * reverted formatting for glossary spec --- .../src/main/resources/ui/cypress/common/common.js | 2 +- .../main/resources/ui/cypress/e2e/Pages/Glossary.spec.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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)