@@ -127,7 +127,7 @@ describe('LogInComponent', () => {
127127
128128 it ( 'should render a log-in container component for each auth method available' , ( ) => {
129129 const loginContainers = fixture . debugElement . queryAll ( By . css ( 'ds-log-in-container' ) ) ;
130- expect ( loginContainers . length ) . toBe ( 2 ) ;
130+ expect ( loginContainers . length ) . toBe ( 1 ) ;
131131
132132 } ) ;
133133
@@ -143,14 +143,15 @@ describe('LogInComponent', () => {
143143 expect ( result ) . toEqual ( [ { authMethodType : AuthMethodType . Password , position : 1 } ] ) ;
144144 } ) ;
145145
146- it ( 'excludes password method when standard login is disabled' , ( ) => {
146+ it ( 'does not exclude password method when standard login is disabled' , ( ) => {
147147 const authMethods = [
148148 { authMethodType : AuthMethodType . Password , position : 1 } ,
149149 { authMethodType : AuthMethodType . Shibboleth , position : 2 } ,
150150 ] ;
151151 component . excludedAuthMethod = undefined ;
152152 const result = component . filterAndSortAuthMethods ( authMethods , false , true ) ;
153153 expect ( result ) . toEqual ( [
154+ { authMethodType : AuthMethodType . Password , position : 1 } ,
154155 { authMethodType : AuthMethodType . Shibboleth , position : 2 } ,
155156 ] ) ;
156157 } ) ;
@@ -165,8 +166,7 @@ describe('LogInComponent', () => {
165166 component . excludedAuthMethod = AuthMethodType . Ip ;
166167 const result = component . filterAndSortAuthMethods ( authMethods , isBackdoor ) ;
167168 expect ( result ) . toEqual ( [
168- { authMethodType : AuthMethodType . Password , position : 1 } ,
169- { authMethodType : AuthMethodType . Shibboleth , position : 3 } ,
169+ { authMethodType : AuthMethodType . Shibboleth , position : 3 }
170170 ] ) ;
171171 } ) ;
172172
@@ -179,8 +179,7 @@ describe('LogInComponent', () => {
179179 component . excludedAuthMethod = undefined ;
180180 const result = component . filterAndSortAuthMethods ( authMethods , isBackdoor ) ;
181181 expect ( result ) . toEqual ( [
182- { authMethodType : AuthMethodType . Shibboleth , position : 1 } ,
183- { authMethodType : AuthMethodType . Password , position : 2 } ,
182+ { authMethodType : AuthMethodType . Shibboleth , position : 1 }
184183 ] ) ;
185184 } ) ;
186185 } ) ;
0 commit comments