@@ -28,11 +28,12 @@ import {
2828 assertNoSTComponents ,
2929 generateState ,
3030 clickOnProviderButton ,
31- loginWithAuth0 ,
31+ loginWithMockProvider ,
3232 getGeneralError ,
3333 waitFor ,
3434 screenshotOnFailure ,
3535 clickOnProviderButtonWithoutWaiting ,
36+ loginWithAuth0 ,
3637} from "../helpers" ;
3738
3839// Run the tests in a DOM environment.
@@ -141,30 +142,30 @@ export function getThirdPartyTestCases({ authRecipe, rid, logId, signInUpPageLoa
141142 ] ) ;
142143 } ) ;
143144
144- it ( "Successful sign in with Auth0 with query params kept" , async function ( ) {
145+ it ( "Successful sign in with SSO with query params kept" , async function ( ) {
145146 await Promise . all ( [
146147 page . goto ( `${ TEST_CLIENT_BASE_URL } /auth?redirectToPath=%2Fredirect-here%3Ffoo%3Dbar` ) ,
147148 page . waitForNavigation ( { waitUntil : "networkidle0" } ) ,
148149 ] ) ;
149150 await assertProviders ( page ) ;
150- await clickOnProviderButton ( page , "Auth0 " ) ;
151+ await clickOnProviderButton ( page , "Mock Provider " ) ;
151152 await Promise . all ( [
152- loginWithAuth0 ( page ) ,
153+ loginWithMockProvider ( page ) ,
153154 page . waitForResponse ( ( response ) => response . url ( ) === SIGN_IN_UP_API && response . status ( ) === 200 ) ,
154155 ] ) ;
155156 const { pathname, search } = await page . evaluate ( ( ) => window . location ) ;
156157 assert . deepStrictEqual ( pathname + search , "/redirect-here?foo=bar" ) ;
157158 } ) ;
158159
159- it ( "Successful signin with Auth0 and email verification" , async function ( ) {
160+ it ( "Successful signin with SSO and email verification" , async function ( ) {
160161 await Promise . all ( [
161162 page . goto ( `${ TEST_CLIENT_BASE_URL } /auth?mode=REQUIRED` ) ,
162163 page . waitForNavigation ( { waitUntil : "networkidle0" } ) ,
163164 ] ) ;
164165 await assertProviders ( page ) ;
165- await clickOnProviderButton ( page , "Auth0 " ) ;
166+ await clickOnProviderButton ( page , "Mock Provider " ) ;
166167 await Promise . all ( [
167- loginWithAuth0 ( page ) ,
168+ loginWithMockProvider ( page ) ,
168169 page . waitForResponse ( ( response ) => response . url ( ) === SIGN_IN_UP_API && response . status ( ) === 200 ) ,
169170 ] ) ;
170171 const pathname = await page . evaluate ( ( ) => window . location . pathname ) ;
@@ -197,30 +198,30 @@ export function getThirdPartyTestCases({ authRecipe, rid, logId, signInUpPageLoa
197198 ] ) ;
198199 } ) ;
199200
200- it ( "Successful signin with auth0 and redirectToPath" , async function ( ) {
201+ it ( "Successful signin with SSO and redirectToPath" , async function ( ) {
201202 await Promise . all ( [
202203 page . goto ( `${ TEST_CLIENT_BASE_URL } /auth?redirectToPath=/hello` ) ,
203204 page . waitForNavigation ( { waitUntil : "networkidle0" } ) ,
204205 ] ) ;
205206 await assertProviders ( page ) ;
206- await clickOnProviderButton ( page , "Auth0 " ) ;
207+ await clickOnProviderButton ( page , "Mock Provider " ) ;
207208 await Promise . all ( [
208- loginWithAuth0 ( page ) ,
209+ loginWithMockProvider ( page ) ,
209210 page . waitForResponse ( ( response ) => response . url ( ) === SIGN_IN_UP_API && response . status ( ) === 200 ) ,
210211 ] ) ;
211212 const pathname = await page . evaluate ( ( ) => window . location . pathname ) ;
212213 assert . deepStrictEqual ( pathname , "/hello" ) ;
213214 } ) ;
214215
215- it ( "Successful signin with auth0 and redirectToPath case sensitive" , async function ( ) {
216+ it ( "Successful signin with SSO and redirectToPath case sensitive" , async function ( ) {
216217 await Promise . all ( [
217218 page . goto ( `${ TEST_CLIENT_BASE_URL } /auth?redirectToPath=%2FCasE%2FCase-SensItive1-PAth` ) ,
218219 page . waitForNavigation ( { waitUntil : "networkidle0" } ) ,
219220 ] ) ;
220221 await assertProviders ( page ) ;
221- await clickOnProviderButton ( page , "Auth0 " ) ;
222+ await clickOnProviderButton ( page , "Mock Provider " ) ;
222223 await Promise . all ( [
223- loginWithAuth0 ( page ) ,
224+ loginWithMockProvider ( page ) ,
224225 page . waitForResponse ( ( response ) => response . url ( ) === SIGN_IN_UP_API && response . status ( ) === 200 ) ,
225226 ] ) ;
226227 const pathname = await page . evaluate ( ( ) => window . location . pathname ) ;
@@ -315,8 +316,8 @@ export function getThirdPartyTestCases({ authRecipe, rid, logId, signInUpPageLoa
315316 }
316317 } ;
317318 page . on ( "request" , requestHandler ) ;
318- await clickOnProviderButton ( page , "Auth0 " ) ;
319- await loginWithAuth0 ( page ) ;
319+ await clickOnProviderButton ( page , "Mock Provider " ) ;
320+ await loginWithMockProvider ( page ) ;
320321 const error = await getGeneralError ( page ) ;
321322 assert . deepStrictEqual ( error , "Terms of Service" ) ;
322323 } ) ;
@@ -351,8 +352,8 @@ export function getThirdPartyTestCases({ authRecipe, rid, logId, signInUpPageLoa
351352 } ;
352353 page . on ( "request" , requestHandler ) ;
353354
354- await clickOnProviderButton ( page , "Auth0 " ) ;
355- await loginWithAuth0 ( page ) ;
355+ await clickOnProviderButton ( page , "Mock Provider " ) ;
356+ await loginWithMockProvider ( page ) ;
356357
357358 const error = await getGeneralError ( page ) ;
358359 assert . deepStrictEqual ( error , "Test message!!!!" ) ;
0 commit comments