@@ -143,13 +143,13 @@ describe('LogInComponent', () => {
143143 expect ( result ) . toEqual ( [ { authMethodType : AuthMethodType . Password , position : 1 } ] ) ;
144144 } ) ;
145145
146- it ( 'does not exclude password method when standard login is disabled' , ( ) => {
146+ it ( 'does not exclude password method when isPasswordLoginEnabledForAdminsOnly is disabled' , ( ) => {
147147 const authMethods = [
148148 { authMethodType : AuthMethodType . Password , position : 1 } ,
149149 { authMethodType : AuthMethodType . Shibboleth , position : 2 } ,
150150 ] ;
151151 component . excludedAuthMethod = undefined ;
152- const result = component . filterAndSortAuthMethods ( authMethods , false , true ) ;
152+ const result = component . filterAndSortAuthMethods ( authMethods , false , false ) ;
153153 expect ( result ) . toEqual ( [
154154 { authMethodType : AuthMethodType . Password , position : 1 } ,
155155 { authMethodType : AuthMethodType . Shibboleth , position : 2 } ,
@@ -164,8 +164,9 @@ describe('LogInComponent', () => {
164164 ] ;
165165 const isBackdoor = false ;
166166 component . excludedAuthMethod = AuthMethodType . Ip ;
167- const result = component . filterAndSortAuthMethods ( authMethods , isBackdoor ) ;
167+ const result = component . filterAndSortAuthMethods ( authMethods , isBackdoor , false ) ;
168168 expect ( result ) . toEqual ( [
169+ { authMethodType : AuthMethodType . Password , position : 1 } ,
169170 { authMethodType : AuthMethodType . Shibboleth , position : 3 }
170171 ] ) ;
171172 } ) ;
@@ -177,9 +178,10 @@ describe('LogInComponent', () => {
177178 ] ;
178179 const isBackdoor = false ;
179180 component . excludedAuthMethod = undefined ;
180- const result = component . filterAndSortAuthMethods ( authMethods , isBackdoor ) ;
181+ const result = component . filterAndSortAuthMethods ( authMethods , isBackdoor , false ) ;
181182 expect ( result ) . toEqual ( [
182- { authMethodType : AuthMethodType . Shibboleth , position : 1 }
183+ { authMethodType : AuthMethodType . Shibboleth , position : 1 } ,
184+ { authMethodType : AuthMethodType . Password , position : 2 }
183185 ] ) ;
184186 } ) ;
185187 } ) ;
0 commit comments