88 toggleSignInSignUp ,
99 getTestEmail ,
1010 waitForSTElement ,
11- submitForm ,
11+ submitFormUnsafe ,
1212 setEnabledRecipes ,
1313 setInputValues ,
1414} from "../helpers" ;
@@ -76,7 +76,7 @@ describe("SuperTokens Webauthn SignUp", () => {
7676 // Should not show the back button after the form is submitted as well.
7777 const email = await getTestEmail ( ) ;
7878 await setInputValues ( page , [ { name : "email" , value : email } ] ) ;
79- await submitForm ( page ) ;
79+ await submitFormUnsafe ( page ) ;
8080 await new Promise ( ( res ) => setTimeout ( res , 1000 ) ) ;
8181
8282 const backBtnAfterSubmit = await page . $ ( "[data-supertokens~='backButton']" ) ;
@@ -107,7 +107,7 @@ describe("SuperTokens Webauthn SignUp", () => {
107107 await tryWebauthnSignUp ( page , email ) ;
108108
109109 // We should be in the confirmation page now.
110- await submitForm ( page ) ;
110+ await submitFormUnsafe ( page ) ;
111111 await page . waitForTimeout ( 2000 ) ;
112112
113113 assert . deepStrictEqual ( consoleLogs , [
@@ -127,7 +127,7 @@ describe("SuperTokens Webauthn SignUp", () => {
127127 const email = await getTestEmail ( ) ;
128128 await tryWebauthnSignUp ( page , email ) ;
129129
130- await submitForm ( page ) ;
130+ await submitFormUnsafe ( page ) ;
131131 await page . waitForTimeout ( 2000 ) ;
132132
133133 assert . deepStrictEqual ( consoleLogs , [
@@ -150,7 +150,7 @@ describe("SuperTokens Webauthn SignUp", () => {
150150 await tryWebauthnSignUp ( page , email ) ;
151151
152152 // We should be in the confirmation page now.
153- await submitForm ( page ) ;
153+ await submitFormUnsafe ( page ) ;
154154 await page . waitForTimeout ( 1000 ) ;
155155
156156 const errorTextContainer = await waitForSTElement (
@@ -183,7 +183,7 @@ describe("SuperTokens Webauthn SignUp", () => {
183183 } ) ;
184184 it ( "should show the email input not populated error" , async ( ) => {
185185 await tryWebauthnSignUp ( page , "" ) ;
186- await submitForm ( page ) ;
186+ await submitFormUnsafe ( page ) ;
187187 const errorTextContainer = await waitForSTElement ( page , "[data-supertokens~='generalError']" ) ;
188188 const errorText = await errorTextContainer . evaluate ( ( el ) => el . textContent ) ;
189189 assert . strictEqual ( errorText , "Please enter your email to continue." ) ;
@@ -198,7 +198,7 @@ describe("SuperTokens Webauthn SignUp", () => {
198198 await tryWebauthnSignUp ( page , email ) ;
199199
200200 // We should be in the confirmation page now.
201- await submitForm ( page ) ;
201+ await submitFormUnsafe ( page ) ;
202202
203203 await waitForSTElement ( page , "[data-supertokens~='passkeyRecoverableErrorContainer']" ) ;
204204
@@ -207,7 +207,7 @@ describe("SuperTokens Webauthn SignUp", () => {
207207 localStorage . removeItem ( "webauthnErrorStatus" ) ;
208208 } ) ;
209209
210- await submitForm ( page ) ;
210+ await submitFormUnsafe ( page ) ;
211211 assert . deepStrictEqual ( consoleLogs , [
212212 "ST_LOGS SESSION OVERRIDE ADD_FETCH_INTERCEPTORS_AND_RETURN_MODIFIED_FETCH" ,
213213 "ST_LOGS SESSION OVERRIDE ADD_AXIOS_INTERCEPTORS" ,
@@ -225,7 +225,7 @@ describe("SuperTokens Webauthn SignUp", () => {
225225 await tryWebauthnSignUp ( page , email ) ;
226226
227227 // We should be in the confirmation page now.
228- await submitForm ( page ) ;
228+ await submitFormUnsafe ( page ) ;
229229
230230 await waitForSTElement ( page , "[data-supertokens~='passkeyRecoverableErrorContainer']" ) ;
231231
@@ -243,7 +243,7 @@ describe("SuperTokens Webauthn SignUp", () => {
243243 await tryWebauthnSignUp ( page , email ) ;
244244
245245 // We should be in the confirmation page now.
246- await submitForm ( page ) ;
246+ await submitFormUnsafe ( page ) ;
247247
248248 const errorTextContainer = await waitForSTElement (
249249 page ,
@@ -269,7 +269,7 @@ describe("SuperTokens Webauthn SignUp", () => {
269269 await tryWebauthnSignUp ( page , email ) ;
270270
271271 // We should be in the confirmation page now.
272- await submitForm ( page ) ;
272+ await submitFormUnsafe ( page ) ;
273273
274274 await waitForSTElement ( page , "[data-supertokens~='somethingWentWrongContainer']" ) ;
275275
@@ -287,7 +287,7 @@ describe("SuperTokens Webauthn SignUp", () => {
287287 await tryWebauthnSignUp ( page , email ) ;
288288
289289 // We should be in the confirmation page now.
290- await submitForm ( page ) ;
290+ await submitFormUnsafe ( page ) ;
291291
292292 await waitForSTElement ( page , "[data-supertokens~='somethingWentWrongContainer']" ) ;
293293 const goBackBtn = await waitForSTElement ( page , "[data-supertokens~='errorGoBackLabel']" ) ;
0 commit comments