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:
Sachin Chaurasiya 2023-01-12 18:52:59 +05:30 committed by GitHub
parent 91a794aaa0
commit eb01aa7d86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -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');
});

View File

@ -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');
});