@@ -384,7 +384,7 @@ describe("Login", function () {
384384 await waitForElementToBeRemoved ( ( ) => screen . queryAllByLabelText ( "Loading…" ) ) ;
385385
386386 // didn't try to register
387- expect ( fetchMock ) . not . toHaveBeenCalledWith ( delegatedAuth . registrationEndpoint ) ;
387+ expect ( fetchMock ) . not . toHaveBeenCalledWith ( delegatedAuth . registration_endpoint ) ;
388388 // continued with normal setup
389389 expect ( mockClient . loginFlows ) . toHaveBeenCalled ( ) ;
390390 // normal password login rendered
@@ -394,25 +394,25 @@ describe("Login", function () {
394394 it ( "should attempt to register oidc client" , async ( ) => {
395395 // dont mock, spy so we can check config values were correctly passed
396396 jest . spyOn ( registerClientUtils , "getOidcClientId" ) ;
397- fetchMock . post ( delegatedAuth . registrationEndpoint ! , { status : 500 } ) ;
397+ fetchMock . post ( delegatedAuth . registration_endpoint ! , { status : 500 } ) ;
398398 getComponent ( hsUrl , isUrl , delegatedAuth ) ;
399399
400400 await waitForElementToBeRemoved ( ( ) => screen . queryAllByLabelText ( "Loading…" ) ) ;
401401
402402 // tried to register
403- expect ( fetchMock ) . toHaveBeenCalledWith ( delegatedAuth . registrationEndpoint , expect . any ( Object ) ) ;
403+ expect ( fetchMock ) . toHaveBeenCalledWith ( delegatedAuth . registration_endpoint , expect . any ( Object ) ) ;
404404 // called with values from config
405405 expect ( registerClientUtils . getOidcClientId ) . toHaveBeenCalledWith ( delegatedAuth , oidcStaticClientsConfig ) ;
406406 } ) ;
407407
408408 it ( "should fallback to normal login when client registration fails" , async ( ) => {
409- fetchMock . post ( delegatedAuth . registrationEndpoint ! , { status : 500 } ) ;
409+ fetchMock . post ( delegatedAuth . registration_endpoint ! , { status : 500 } ) ;
410410 getComponent ( hsUrl , isUrl , delegatedAuth ) ;
411411
412412 await waitForElementToBeRemoved ( ( ) => screen . queryAllByLabelText ( "Loading…" ) ) ;
413413
414414 // tried to register
415- expect ( fetchMock ) . toHaveBeenCalledWith ( delegatedAuth . registrationEndpoint , expect . any ( Object ) ) ;
415+ expect ( fetchMock ) . toHaveBeenCalledWith ( delegatedAuth . registration_endpoint , expect . any ( Object ) ) ;
416416 expect ( logger . error ) . toHaveBeenCalledWith ( new Error ( OidcError . DynamicRegistrationFailed ) ) ;
417417
418418 // continued with normal setup
@@ -423,7 +423,7 @@ describe("Login", function () {
423423
424424 // short term during active development, UI will be added in next PRs
425425 it ( "should show continue button when oidc native flow is correctly configured" , async ( ) => {
426- fetchMock . post ( delegatedAuth . registrationEndpoint ! , { client_id : "abc123" } ) ;
426+ fetchMock . post ( delegatedAuth . registration_endpoint ! , { client_id : "abc123" } ) ;
427427 getComponent ( hsUrl , isUrl , delegatedAuth ) ;
428428
429429 await waitForElementToBeRemoved ( ( ) => screen . queryAllByLabelText ( "Loading…" ) ) ;
@@ -455,7 +455,7 @@ describe("Login", function () {
455455 await waitForElementToBeRemoved ( ( ) => screen . queryAllByLabelText ( "Loading…" ) ) ;
456456
457457 // didn't try to register
458- expect ( fetchMock ) . not . toHaveBeenCalledWith ( delegatedAuth . registrationEndpoint ) ;
458+ expect ( fetchMock ) . not . toHaveBeenCalledWith ( delegatedAuth . registration_endpoint ) ;
459459 // continued with normal setup
460460 expect ( mockClient . loginFlows ) . toHaveBeenCalled ( ) ;
461461 // oidc-aware 'continue' button displayed
0 commit comments