test: Return cy.request promise from login
- to make cypress wait for the promise.
This commit is contained in:
parent
91afe51c7c
commit
6c3957aa30
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ Cypress.Commands.add("login", (email, password) => {
|
|||
if (!password) {
|
||||
password = Cypress.env("adminPassword");
|
||||
}
|
||||
cy.request({
|
||||
return cy.request({
|
||||
url: "/api/method/login",
|
||||
method: "POST",
|
||||
body: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue