mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-06 12:36:56 +00:00
cy: added cypress to remove owner (#11458)
This commit is contained in:
parent
6606576575
commit
55751f7eaa
@ -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', () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user