@@ -126,8 +126,8 @@ describe("User", function () {
126126 const inputElements = TestUtils . scryRenderedDOMComponentsWithTag ( tree , "input" ) ;
127127 const selectElements = TestUtils . scryRenderedDOMComponentsWithTag ( tree , "select" ) ;
128128
129- expect ( inputElements . length ) . toEqual ( 5 ) ;
130- expect ( selectElements . length ) . toEqual ( 2 ) ;
129+ expect ( inputElements . length ) . toEqual ( 4 ) ;
130+ expect ( selectElements . length ) . toEqual ( 1 ) ;
131131
132132 for ( let input of inputElements ) {
133133 switch ( input . name ) {
@@ -298,7 +298,7 @@ describe("User", function () {
298298 }
299299 }
300300 const selects = TestUtils . scryRenderedDOMComponentsWithTag ( tree , "select" ) ;
301- expect ( selects . length ) . toEqual ( 2 ) ;
301+ expect ( selects . length ) . toEqual ( 1 ) ;
302302 const randomButton = TestUtils . scryRenderedDOMComponentsWithClass ( tree , "glyphicon" ) ;
303303 expect ( randomButton . length ) . toEqual ( 0 ) ;
304304 } ) ;
@@ -344,7 +344,7 @@ describe("User", function () {
344344 }
345345 }
346346 const selects = TestUtils . scryRenderedDOMComponentsWithTag ( tree , "select" ) ;
347- expect ( selects . length ) . toEqual ( 2 ) ;
347+ expect ( selects . length ) . toEqual ( 1 ) ;
348348 } ) ;
349349
350350 it ( "renders filled user's form" , function ( ) {
@@ -416,9 +416,9 @@ describe("User", function () {
416416 </ IntlProvider > ,
417417 ) ;
418418 const buttons = TestUtils . scryRenderedDOMComponentsWithTag ( tree , "Button" ) ;
419- expect ( buttons . length ) . toEqual ( 5 ) ;
419+ expect ( buttons . length ) . toEqual ( 3 ) ;
420420
421- TestUtils . Simulate . click ( buttons [ 4 ] ) ; // cancel
421+ TestUtils . Simulate . click ( buttons [ 2 ] ) ; // cancel
422422 expect ( handlers . onCancel ) . toHaveBeenCalled ( ) ;
423423 } ) ;
424424
@@ -442,9 +442,9 @@ describe("User", function () {
442442 ) ;
443443 const buttons = TestUtils . scryRenderedDOMComponentsWithTag ( tree , "Button" ) ;
444444
445- expect ( buttons . length ) . toEqual ( 5 ) ;
445+ expect ( buttons . length ) . toEqual ( 3 ) ;
446446
447- TestUtils . Simulate . click ( buttons [ 4 ] ) ; // back to institution
447+ TestUtils . Simulate . click ( buttons [ 2 ] ) ; // back to institution
448448 expect ( handlers . onCancel ) . toHaveBeenCalled ( ) ;
449449 } ) ;
450450
0 commit comments