File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -489,8 +489,36 @@ public void IsFixedSearch_Ok()
489489 pb . Add ( a => a . ShowSearch , true ) ;
490490 pb . Add ( a => a . IsFixedSearch , true ) ;
491491 } ) ;
492+ Assert . Contains ( "search show is-fixed" , cut . Markup ) ;
493+ Assert . Contains ( "class=\" icon search-icon" , cut . Markup ) ;
494+
495+ cut . SetParametersAndRender ( pb =>
496+ {
497+ pb . Add ( a => a . ShowSearch , false ) ;
498+ } ) ;
492499 Assert . Contains ( "search is-fixed" , cut . Markup ) ;
493- Assert . Contains ( "class=\" icon" , cut . Markup ) ;
500+ }
501+
502+ [ Fact ]
503+ public void ScrollIntoViewBehavior_Ok ( )
504+ {
505+ var cut = Context . RenderComponent < Select < string > > ( pb =>
506+ {
507+ pb . Add ( a => a . Items , new SelectedItem [ ]
508+ {
509+ new ( "1" , "Test1" ) ,
510+ new ( "2" , "Test2" )
511+ } ) ;
512+ pb . Add ( a => a . Value , "2" ) ;
513+ pb . Add ( a => a . ScrollIntoViewBehavior , ScrollIntoViewBehavior . Auto ) ;
514+ } ) ;
515+ Assert . Contains ( "data-bb-scroll-behavior=\" auto\" " , cut . Markup ) ;
516+
517+ cut . SetParametersAndRender ( pb =>
518+ {
519+ pb . Add ( a => a . ScrollIntoViewBehavior , ScrollIntoViewBehavior . Smooth ) ;
520+ } ) ;
521+ Assert . DoesNotContain ( "data-bb-scroll-behavior" , cut . Markup ) ;
494522 }
495523
496524 [ Fact ]
You can’t perform that action at this time.
0 commit comments