Obsolete cypress command

This commit is contained in:
Robert Schäfer 2019-02-22 00:11:34 +01:00
parent 233c6abbab
commit 1e219934d2

View File

@ -49,11 +49,6 @@ Cypress.Commands.add('login', ({email, password}) => {
cy.location('pathname').should('eq', '/') // we're in!
})
Cypress.Commands.add('loginAs', role => {
role = role || 'admin'
cy.login(users[role])
})
Cypress.Commands.add('logout', (email, password) => {
cy.visit(`/logout`)
cy.location('pathname').should('contain', '/login') // we're out