mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-27 16:10:30 +08:00
fix test
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user