mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-25 17:04:54 +00:00
e2e: UI : User journey for permission end-2-end test (#9667)
* e2e: UI : User journey for permission end-2-end test * address comments * fix failing test
This commit is contained in:
parent
91a794aaa0
commit
eb01aa7d86
@ -109,8 +109,8 @@ const ID = {
|
|||||||
button: 'add-bot',
|
button: 'add-bot',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
// Todo:- Need to fix flaky test
|
|
||||||
describe.skip('DataConsumer Edit policy should work properly', () => {
|
describe('DataConsumer Edit policy should work properly', () => {
|
||||||
it('Create a new account and assign Data consumer role to the user', () => {
|
it('Create a new account and assign Data consumer role to the user', () => {
|
||||||
interceptURL('GET', 'api/v1/config/auth', 'getLoginPage');
|
interceptURL('GET', 'api/v1/config/auth', 'getLoginPage');
|
||||||
cy.visit('/');
|
cy.visit('/');
|
||||||
@ -190,7 +190,7 @@ describe.skip('DataConsumer Edit policy should work properly', () => {
|
|||||||
cy.get('[data-testid="header"]')
|
cy.get('[data-testid="header"]')
|
||||||
.should('be.visible')
|
.should('be.visible')
|
||||||
.invoke('text')
|
.invoke('text')
|
||||||
.should('eq', `Edit description for ${entity.displayName}`);
|
.should('eq', `Edit Description for ${entity.displayName}`);
|
||||||
|
|
||||||
cy.get('[data-testid="cancel"]').should('be.visible').click();
|
cy.get('[data-testid="cancel"]').should('be.visible').click();
|
||||||
|
|
||||||
@ -267,7 +267,7 @@ describe.skip('DataConsumer Edit policy should work properly', () => {
|
|||||||
.should('be.visible')
|
.should('be.visible')
|
||||||
.should('be.disabled');
|
.should('be.disabled');
|
||||||
|
|
||||||
cy.get('[data-testid="delete-tag-category-button"]')
|
cy.get('[data-testid="delete-classification-or-tag"]')
|
||||||
.should('be.visible')
|
.should('be.visible')
|
||||||
.should('be.disabled');
|
.should('be.disabled');
|
||||||
});
|
});
|
||||||
|
@ -80,7 +80,7 @@ Cypress.Commands.add('loginByGoogleApi', () => {
|
|||||||
Cypress.Commands.add('goToHomePage', () => {
|
Cypress.Commands.add('goToHomePage', () => {
|
||||||
interceptURL('GET', '/api/v1/util/entities/count', 'count');
|
interceptURL('GET', '/api/v1/util/entities/count', 'count');
|
||||||
interceptURL('GET', '/api/v1/feed*', 'feed');
|
interceptURL('GET', '/api/v1/feed*', 'feed');
|
||||||
interceptURL('GET', '/api/v1/users/name/*?fields=profile', 'userProfile');
|
interceptURL('GET', '/api/v1/users/name/*?fields=*', 'userProfile');
|
||||||
cy.get('[data-testid="whats-new-dialog"]').should('exist').then(() => {
|
cy.get('[data-testid="whats-new-dialog"]').should('exist').then(() => {
|
||||||
cy.get('[role="dialog"]').should('be.visible');
|
cy.get('[role="dialog"]').should('be.visible');
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user