From 1e219934d289c81140ba26e434de1e5579c17e5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Fri, 22 Feb 2019 00:11:34 +0100 Subject: [PATCH] Obsolete cypress command --- cypress/support/commands.js | 5 ----- 1 file changed, 5 deletions(-) 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