@@ -437,43 +437,6 @@ describe("SuperTokens Account linking", function () {
437437 assert . strictEqual ( new URL ( page . url ( ) ) . pathname , "/auth/" ) ;
438438 } ) ;
439439
440- // TODO: explain
441- it . skip ( "should not allow sign up w/ passwordless after changing the email if it conflicts with an unverified user" , async function ( ) {
442- const email = `test-user+${ Date . now ( ) } @supertokens.com` ;
443- const email2 = `test-user-2+${ Date . now ( ) } @supertokens.com` ;
444-
445- await setAccountLinkingConfig ( true , false ) ;
446- // 1. Sign up without account linking with an unverified ep user & log out
447- await tryEmailPasswordSignUp ( page , email ) ;
448- await logOut ( page ) ;
449-
450- // 2. Sign up with passwordless
451- await tryPasswordlessSignInUp ( page , email2 ) ;
452- await Promise . all ( [ page . waitForSelector ( ".sessionInfo-user-id" ) , page . waitForNetworkIdle ( ) ] ) ;
453- const accessTokenPayload = await page . evaluate ( ( ) =>
454- window . __supertokensSessionRecipe . getAccessTokenPayloadSecurely ( )
455- ) ;
456- const userId = accessTokenPayload . sub ;
457- await logOut ( page ) ;
458-
459- await page . evaluate ( ( ) => localStorage . removeItem ( "supertokens-passwordless-loginAttemptInfo" ) ) ;
460- await Promise . all ( [
461- page . goto ( `${ TEST_CLIENT_BASE_URL } /auth/?authRecipe=passwordless` ) ,
462- page . waitForNavigation ( { waitUntil : "networkidle0" } ) ,
463- ] ) ;
464- await changeEmail ( "passwordless" , userId , email ) ;
465- await setAccountLinkingConfig ( true , true , true ) ;
466-
467- await setInputValues ( page , [ { name : "emailOrPhone" , value : email } ] ) ;
468- await submitForm ( page ) ;
469-
470- assert . strictEqual (
471- await getGeneralError ( page ) ,
472- "Cannot sign in / up due to security reasons. Please try a different login method or contact support. (ERR_CODE_003)"
473- ) ;
474- assert . strictEqual ( new URL ( page . url ( ) ) . pathname , "/auth/" ) ;
475- } ) ;
476-
477440 it ( "should not allow sign up w/ passwordless if it conflicts with an unverified user" , async function ( ) {
478441 const email = `test-user+${ Date . now ( ) } @supertokens.com` ;
479442
0 commit comments