diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 5cc68a7c48..488f0e450c 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -53,6 +53,9 @@ Cypress.Commands.add("login", (email, password) => { }); Cypress.Commands.add("call", (method, args) => { + if (method === "logout") { + cy.visit("/"); + } return cy .window() .its("frappe.csrf_token")