File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -376,24 +376,25 @@ public void FormatGenericValue_Ok()
376376 }
377377
378378 [ Fact ]
379- public void IsButton_Ok ( )
379+ public async Task IsButton_Ok ( )
380380 {
381381 var cut = Context . RenderComponent < CheckboxList < IEnumerable < int > > > ( pb =>
382382 {
383383 pb . Add ( a => a . IsButton , true ) ;
384+ pb . Add ( a => a . ShowButtonBorderColor , true ) ;
384385 pb . Add ( a => a . Color , Color . Danger ) ;
385386 pb . Add ( a => a . Items , new List < SelectedItem > ( )
386387 {
387388 new ( "1" , "Test 1" ) ,
388389 new ( "2" , "Test 2" )
389390 } ) ;
390391 } ) ;
391- cut . InvokeAsync ( ( ) =>
392+ var item = cut . Find ( ".btn" ) ;
393+ await cut . InvokeAsync ( ( ) =>
392394 {
393- var item = cut . Find ( ".btn" ) ;
394395 item . Click ( ) ;
395- cut . Contains ( "btn active bg-danger" ) ;
396396 } ) ;
397+ cut . Contains ( "btn border-danger" ) ;
397398 }
398399
399400 [ Fact ]
You can’t perform that action at this time.
0 commit comments