This commit is contained in:
notmd
2023-01-26 02:13:30 +07:00
parent 1af8079e17
commit 0d629c19cd
+14 -5
View File
@@ -14,11 +14,20 @@ describe("signin flow", () => {
cy.request("GET", "/api/auth/csrf")
.then((response) => {
const csrfToken = response.body.csrfToken;
cy.request("POST", "/api/auth/signin/email", {
callbackUrl: "/",
email: emailAddress,
csrfToken,
json: "true",
cy.request({
form: true,
method: "POST",
url: "/api/auth/signin/email",
body: {
callbackUrl: "/",
email: emailAddress,
csrfToken,
json: "true",
captcha: "XXXX.DUMMY.TOKEN.XXXX",
},
headers: {
"content-type": "application/x-www-form-urlencoded",
},
});
})
.then((response) => {