@@ -154,13 +154,13 @@ describe('LogInComponent', () => {
154154 expect ( result ) . toEqual ( [ { authMethodType : AuthMethodType . Password , position : 1 } ] ) ;
155155 } ) ;
156156
157- it ( 'does not exclude password method when standard login is disabled' , ( ) => {
157+ it ( 'does not exclude password method when isPasswordLoginEnabledForAdminsOnly is disabled' , ( ) => {
158158 const authMethods = [
159159 { authMethodType : AuthMethodType . Password , position : 1 } ,
160160 { authMethodType : AuthMethodType . Shibboleth , position : 2 } ,
161161 ] ;
162162 component . excludedAuthMethod = undefined ;
163- const result = component . filterAndSortAuthMethods ( authMethods , false , true ) ;
163+ const result = component . filterAndSortAuthMethods ( authMethods , false , false ) ;
164164 expect ( result ) . toEqual ( [
165165 { authMethodType : AuthMethodType . Password , position : 1 } ,
166166 { authMethodType : AuthMethodType . Shibboleth , position : 2 } ,
@@ -175,8 +175,9 @@ describe('LogInComponent', () => {
175175 ] ;
176176 const isBackdoor = false ;
177177 component . excludedAuthMethod = AuthMethodType . Ip ;
178- const result = component . filterAndSortAuthMethods ( authMethods , isBackdoor ) ;
178+ const result = component . filterAndSortAuthMethods ( authMethods , isBackdoor , false ) ;
179179 expect ( result ) . toEqual ( [
180+ { authMethodType : AuthMethodType . Password , position : 1 } ,
180181 { authMethodType : AuthMethodType . Shibboleth , position : 3 } ,
181182 ] ) ;
182183 } ) ;
@@ -188,9 +189,10 @@ describe('LogInComponent', () => {
188189 ] ;
189190 const isBackdoor = false ;
190191 component . excludedAuthMethod = undefined ;
191- const result = component . filterAndSortAuthMethods ( authMethods , isBackdoor ) ;
192+ const result = component . filterAndSortAuthMethods ( authMethods , isBackdoor , false ) ;
192193 expect ( result ) . toEqual ( [
193194 { authMethodType : AuthMethodType . Shibboleth , position : 1 } ,
195+ { authMethodType : AuthMethodType . Password , position : 2 } ,
194196 ] ) ;
195197 } ) ;
196198 } ) ;
0 commit comments