Ver código fonte

fix(cypress): User groups test

Signed-off-by: Christopher Ng <chrng8@gmail.com>
tags/v28.0.0beta1
Christopher Ng 7 meses atrás
pai
commit
b3d426c510
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      cypress/e2e/settings/users_groups.cy.ts

+ 2
- 2
cypress/e2e/settings/users_groups.cy.ts Ver arquivo

@@ -87,9 +87,9 @@ describe('Settings: Create and delete groups', () => {
expect(error.name).to.equal('AssertionError')
expect(error).to.have.property('node', '.modal-container')
})
// Make sure no confirmation modal is shown
// Make sure no confirmation modal is shown on top of the Remove group modal
cy.get('body').find('.modal-container').then(($modals) => {
if ($modals.length > 0) {
if ($modals.length > 1) {
cy.wrap($modals.first()).find('input[type="password"]').type(admin.password)
cy.wrap($modals.first()).find('button').contains('Confirm').click()
}

Carregando…
Cancelar
Salvar