mirror of
https://github.com/nextcloud/server.git
synced 2026-04-20 22:00:39 -04:00
test(cypress): Fix tests
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
f54acd52a3
commit
930e47d44c
1 changed files with 6 additions and 0 deletions
|
|
@ -39,6 +39,9 @@ describe('Settings: Create and delete accounts', function() {
|
|||
cy.get('input[type="password"]').type(john.password)
|
||||
// see that the password is 123456
|
||||
cy.get('input[type="password"]').should('have.value', john.password)
|
||||
})
|
||||
|
||||
cy.get('form[data-test="form"]').parents('[role="dialog"]').within(() => {
|
||||
// submit the new user form
|
||||
cy.get('button[type="submit"]').click({ force: true })
|
||||
})
|
||||
|
|
@ -73,6 +76,9 @@ describe('Settings: Create and delete accounts', function() {
|
|||
cy.get('input[type="password"]').should('exist').and('have.value', '')
|
||||
cy.get('input[type="password"]').type(john.password)
|
||||
cy.get('input[type="password"]').should('have.value', john.password)
|
||||
})
|
||||
|
||||
cy.get('form[data-test="form"]').parents('[role="dialog"]').within(() => {
|
||||
// submit the new user form
|
||||
cy.get('button[type="submit"]').click({ force: true })
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue