@@ -43,7 +43,6 @@ import {
4343} from "../helpers" ;
4444
4545import { TEST_CLIENT_BASE_URL , SOMETHING_WENT_WRONG_ERROR } from "../constants" ;
46- import { tryEmailPasswordSignUp , tryPasswordlessSignInUp } from "./mfa.helpers" ;
4746
4847/*
4948 * Tests.
@@ -2104,56 +2103,6 @@ export function getPasswordlessTestCases({ authRecipe, logId, generalErrorRecipe
21042103 await waitForSTElement ( page , "[data-supertokens~=input][name=userInputCode]" ) ;
21052104 } ) ;
21062105 } ) ;
2107-
2108- if ( authRecipe === "all" ) {
2109- describe ( "with emailpassword combo" , ( ) => {
2110- before ( async function ( ) {
2111- await backendHook ( "before" ) ;
2112- await setupST ( {
2113- coreUrl,
2114- passwordlessFlowType : "USER_INPUT_CODE" ,
2115- passwordlessContactMethod : contactMethod ,
2116- } ) ;
2117- ( { browser, page } = await initBrowser ( contactMethod , consoleLogs , authRecipe , undefined ) ) ;
2118- if ( authRecipe === "all" ) {
2119- await tryEmailPasswordSignUp ( page , registeredEmailWithPass ) ;
2120- }
2121- } ) ;
2122-
2123- after ( async function ( ) {
2124- await browser ?. close ( ) ;
2125- await backendHook ( "after" ) ;
2126- } ) ;
2127-
2128- beforeEach ( async function ( ) {
2129- await clearBrowserCookiesWithoutAffectingConsole ( page , consoleLogs ) ;
2130-
2131- await page . evaluate ( ( ) => localStorage . removeItem ( "supertokens-passwordless-loginAttemptInfo" ) ) ;
2132- await page . evaluate ( ( ) => localStorage . removeItem ( "SHOW_GENERAL_ERROR" ) ) ;
2133-
2134- consoleLogs . length = 0 ;
2135- } ) ;
2136-
2137- it ( "should navigate to the sign in page when the user clicks on the forgot password link" , async function ( ) {
2138- await page . goto ( `${ TEST_CLIENT_BASE_URL } /auth` ) ;
2139-
2140- await setInputValues ( page , [ { name : "email" , value : registeredEmailWithPass } ] ) ;
2141- await submitForm ( page ) ;
2142-
2143- const testVal = "nav check" + Date . now ( ) ;
2144-
2145- await page . evaluate ( ( testVal ) => {
2146- window . testVal = testVal ;
2147- } , testVal ) ;
2148-
2149- await clickForgotPasswordLink ( page ) ;
2150- await waitForUrl ( page , "/auth/reset-password" ) ;
2151-
2152- const testValAfterNav = await page . evaluate ( ( ) => window . testVal ) ;
2153- assert . strictEqual ( testVal , testValAfterNav ) ;
2154- } ) ;
2155- } ) ;
2156- }
21572106 }
21582107}
21592108
0 commit comments