This commit is contained in:
Ramon Wenger 2019-12-09 15:29:07 +01:00
parent c2ead4c78d
commit d400b2f61c
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@
// -- This is will overwrite an existing command --
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })
// todo: replace with apollo call
Cypress.Commands.add("login", (username, password, visitLogin=false) => {
if (visitLogin) {
cy.visit('/login');