New test to understand better route & request. changed login function without tested it.

This commit is contained in:
Thoscellen
2019-08-22 14:28:29 +02:00
parent 099f346faa
commit f852ffce0b
3 changed files with 65 additions and 54 deletions

View File

@@ -3,11 +3,7 @@ Cypress.Commands.add('login', function (user) {
cy.request({
method: 'POST',
url: "/online/api/auth?t=" + new Date().getTime(),
body: {
"email": user.email,
"password": user.password,
"remember": false
}
body: user
}).as("response")
});