Browse Source

test: cypress test correction

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4134/head
Pranav C 2 years ago
parent
commit
a58fe08b44
  1. 6
      scripts/cypress/integration/common/5c_super_user_role.js

6
scripts/cypress/integration/common/5c_super_user_role.js

@ -88,7 +88,7 @@ export const genTest = (apiType, dbType) => {
cy.visit('/#/account/users').then((win) => {
cy.get('[data-cy="nc-super-user-list"]').should('exist')
.find('tbody tr').should('have.length', 1);
.find('tbody tr').should('have.length', 5);
cy.get('[data-cy=\'nc-super-user-invite\'')
.click();
@ -117,7 +117,7 @@ export const genTest = (apiType, dbType) => {
cy.get('[data-cy="nc-super-user-list"]').should('exist')
.find('tbody tr').should('have.length', 2)
.find('tbody tr').should('have.length', 6)
.last().find('[data-cy="nc-super-user-delete"]').click();
cy.getActiveModal().find('.ant-modal-confirm-btns .ant-btn-primary').click();
@ -126,7 +126,7 @@ export const genTest = (apiType, dbType) => {
cy.get('[data-cy="nc-super-user-list"]').should('exist')
.find('tbody tr').should('have.length', 1);
.find('tbody tr').should('have.length', 5);
});
});

Loading…
Cancel
Save