cy: added cypress to remove owner (#11458)

This commit is contained in:
Shailesh Parmar 2023-05-08 11:03:33 +05:30 committed by GitHub
parent 6606576575
commit 55751f7eaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -256,14 +256,13 @@ describe('Add and Remove Owner and Tier', () => {
cy.get('[data-testid="glossary-owner-name"]')
.should('be.visible')
.should('contain', OWNER);
// Todo: uncomment once remove owner functionality will be added in glossary
// cy.get('[data-testid="edit-owner-button"]').should('be.visible').click();
// verifyResponseStatusCode('@getUsers', 200);
// cy.get('[data-testid="remove-owner"]').should('be.visible').click();
// verifyResponseStatusCode('@patchOwner', 200);
// cy.get('[data-testid="glossary-owner-name"]')
// .should('be.visible')
// .should('contain', 'No Owner');
cy.get('[data-testid="edit-owner-button"]').should('be.visible').click();
cy.get('[data-testid="remove-owner"]').should('be.visible').click();
verifyResponseStatusCode('@patchOwner', 200);
cy.get('[data-testid="glossary-owner-name"] > [data-testid="Add"]').should(
'be.visible'
);
});
it('GlossaryTerm details page', () => {
@ -318,14 +317,13 @@ describe('Add and Remove Owner and Tier', () => {
cy.get('[data-testid="glossary-owner-name"]')
.should('be.visible')
.should('contain', OWNER);
// Todo: uncomment once remove owner functionality will be added in glossaryTerm
// cy.get('[data-testid="edit-owner-button"]').should('be.visible').click();
// verifyResponseStatusCode('@getUsers', 200);
// cy.get('[data-testid="remove-owner"]').should('be.visible').click();
// verifyResponseStatusCode('@patchOwner', 200);
// cy.get('[data-testid="glossary-owner-name"]')
// .should('be.visible')
// .should('contain', 'No Owner');
cy.get('[data-testid="edit-owner-button"]').should('be.visible').click();
cy.get('[data-testid="remove-owner"]').should('be.visible').click();
verifyResponseStatusCode('@patchOwner', 200);
cy.get('[data-testid="glossary-owner-name"] > [data-testid="Add"]').should(
'be.visible'
);
});
it('Delete glossary and glossaryTerm', () => {