mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-28 19:05:53 +00:00
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
This commit is contained in:
parent
c06dbfd22e
commit
2abe40f08c
@ -744,7 +744,7 @@ export const editCreatedProperty = (propertyName) => {
|
|||||||
|
|
||||||
verifyResponseStatusCode('@checkPatchForDescription', 200);
|
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
|
//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');
|
cy.get(`[data-row-key="${propertyName}"]`).find('[data-testid="viewer-container"]').should('contain', 'This is new description');
|
||||||
|
@ -245,7 +245,7 @@ describe('Glossary page should work properly', () => {
|
|||||||
|
|
||||||
// updating description
|
// updating description
|
||||||
cy.get('[data-testid="edit-description"]').should('be.visible').click();
|
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(descriptionBox).should('be.visible').as('description');
|
||||||
|
|
||||||
cy.get('@description').clear();
|
cy.get('@description').clear();
|
||||||
@ -254,7 +254,7 @@ describe('Glossary page should work properly', () => {
|
|||||||
interceptURL('PATCH', '/api/v1/glossaries/*', 'saveGlossary');
|
interceptURL('PATCH', '/api/v1/glossaries/*', 'saveGlossary');
|
||||||
cy.get('[data-testid="save"]').click();
|
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);
|
verifyResponseStatusCode('@saveGlossary', 200);
|
||||||
|
|
||||||
@ -298,7 +298,7 @@ describe('Glossary page should work properly', () => {
|
|||||||
|
|
||||||
// updating description
|
// updating description
|
||||||
cy.get('[data-testid="edit-description"]').should('be.visible').click();
|
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')
|
cy.get('.toastui-editor-md-container > .toastui-editor > .ProseMirror')
|
||||||
.should('be.visible')
|
.should('be.visible')
|
||||||
.as('description');
|
.as('description');
|
||||||
@ -306,7 +306,7 @@ describe('Glossary page should work properly', () => {
|
|||||||
cy.get('@description').type(newDescription);
|
cy.get('@description').type(newDescription);
|
||||||
cy.get('[data-testid="save"]').click();
|
cy.get('[data-testid="save"]').click();
|
||||||
verifyResponseStatusCode('@saveData', 200);
|
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"]')
|
cy.get('[data-testid="viewer-container"]')
|
||||||
.contains(newDescription)
|
.contains(newDescription)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user