test: Load root page before logout to load CSRF token
This commit is contained in:
parent
413f4915e8
commit
3334235e7a
1 changed files with 3 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue