mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-25 08:50:18 +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',
|
||||
},
|
||||
};
|
||||
// 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', () => {
|
||||
interceptURL('GET', 'api/v1/config/auth', 'getLoginPage');
|
||||
cy.visit('/');
|
||||
@ -190,7 +190,7 @@ describe.skip('DataConsumer Edit policy should work properly', () => {
|
||||
cy.get('[data-testid="header"]')
|
||||
.should('be.visible')
|
||||
.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();
|
||||
|
||||
@ -267,7 +267,7 @@ describe.skip('DataConsumer Edit policy should work properly', () => {
|
||||
.should('be.visible')
|
||||
.should('be.disabled');
|
||||
|
||||
cy.get('[data-testid="delete-tag-category-button"]')
|
||||
cy.get('[data-testid="delete-classification-or-tag"]')
|
||||
.should('be.visible')
|
||||
.should('be.disabled');
|
||||
});
|
||||
|
@ -80,7 +80,7 @@ Cypress.Commands.add('loginByGoogleApi', () => {
|
||||
Cypress.Commands.add('goToHomePage', () => {
|
||||
interceptURL('GET', '/api/v1/util/entities/count', 'count');
|
||||
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('[role="dialog"]').should('be.visible');
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user