зеркало из https://github.com/nextcloud/text.git
Merge pull request #2330 from nextcloud/fix/cypress-login-command
Adapt cypress login command to small change in login page
This commit is contained in:
Коммит
25389bd1df
|
@ -33,7 +33,7 @@ Cypress.Commands.add('login', (user, password, { route, onBeforeLoad } = {}) =>
|
|||
cy.visit(route)
|
||||
cy.get('input[name=user]').type(user)
|
||||
cy.get('input[name=password]').type(password)
|
||||
cy.get('#submit-wrapper input[type=submit]').click()
|
||||
cy.get('.submit-wrapper input[type=submit]').click()
|
||||
cy.url().should('include', route)
|
||||
})
|
||||
// in case the session already existed but we are on a different route...
|
||||
|
|
Загрузка…
Ссылка в новой задаче