diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 30b7745cd..a2f52fd91 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -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