@@ -138,7 +138,7 @@ describe('LogInComponent', () => {
138138
139139 it ( 'should render a log-in container component for each auth method available' , ( ) => {
140140 const loginContainers = fixture . debugElement . queryAll ( By . css ( 'ds-log-in-container' ) ) ;
141- expect ( loginContainers . length ) . toBe ( 2 ) ;
141+ expect ( loginContainers . length ) . toBe ( 1 ) ;
142142
143143 } ) ;
144144
@@ -154,14 +154,15 @@ describe('LogInComponent', () => {
154154 expect ( result ) . toEqual ( [ { authMethodType : AuthMethodType . Password , position : 1 } ] ) ;
155155 } ) ;
156156
157- it ( 'excludes password method when standard login is disabled' , ( ) => {
157+ it ( 'does not exclude password method when standard login is disabled' , ( ) => {
158158 const authMethods = [
159159 { authMethodType : AuthMethodType . Password , position : 1 } ,
160160 { authMethodType : AuthMethodType . Shibboleth , position : 2 } ,
161161 ] ;
162162 component . excludedAuthMethod = undefined ;
163163 const result = component . filterAndSortAuthMethods ( authMethods , false , true ) ;
164164 expect ( result ) . toEqual ( [
165+ { authMethodType : AuthMethodType . Password , position : 1 } ,
165166 { authMethodType : AuthMethodType . Shibboleth , position : 2 } ,
166167 ] ) ;
167168 } ) ;
@@ -176,7 +177,6 @@ describe('LogInComponent', () => {
176177 component . excludedAuthMethod = AuthMethodType . Ip ;
177178 const result = component . filterAndSortAuthMethods ( authMethods , isBackdoor ) ;
178179 expect ( result ) . toEqual ( [
179- { authMethodType : AuthMethodType . Password , position : 1 } ,
180180 { authMethodType : AuthMethodType . Shibboleth , position : 3 } ,
181181 ] ) ;
182182 } ) ;
@@ -191,7 +191,6 @@ describe('LogInComponent', () => {
191191 const result = component . filterAndSortAuthMethods ( authMethods , isBackdoor ) ;
192192 expect ( result ) . toEqual ( [
193193 { authMethodType : AuthMethodType . Shibboleth , position : 1 } ,
194- { authMethodType : AuthMethodType . Password , position : 2 } ,
195194 ] ) ;
196195 } ) ;
197196 } ) ;
0 commit comments