@@ -874,22 +874,22 @@ public async Task IsAccordion_Ok()
874874 ] ;
875875 nodes = TreeFoo . CascadingTree ( items ) ;
876876
877- cut . SetParametersAndRender ( pb => pb . Add ( a => a . Items , nodes ) ) ;
877+ await cut . InvokeAsync ( ( ) => cut . Instance . SetItems ( nodes ) ) ;
878878 // 子节点
879879 bars = cut . FindAll ( ".fa-caret-right.visible" ) ;
880880 await cut . InvokeAsync ( ( ) => bars [ 0 ] . Click ( ) ) ;
881881
882- // bars = cut.FindAll(".fa-caret-right.visible");
883- // Assert.Contains("fa-rotate-90", bars[0].ClassName);
882+ bars = cut . FindAll ( ".fa-caret-right.visible" ) ;
883+ Assert . Contains ( "fa-rotate-90" , bars [ 0 ] . ClassName ) ;
884884
885- //// 点击第三个节点箭头开展
886- // bars = cut.FindAll(".fa-caret-right.visible");
887- // await cut.InvokeAsync(() => bars[2].Click());
885+ // 点击第三个节点箭头开展
886+ bars = cut . FindAll ( ".fa-caret-right.visible" ) ;
887+ await cut . InvokeAsync ( ( ) => bars [ 2 ] . Click ( ) ) ;
888888
889- // bars = cut.FindAll(".fa-caret-right.visible");
890- // Assert.Contains("fa-rotate-90", bars[0].ClassName);
891- // Assert.DoesNotContain("fa-rotate-90", bars[1].ClassName);
892- // Assert.Contains("fa-rotate-90", bars[2].ClassName);
889+ bars = cut . FindAll ( ".fa-caret-right.visible" ) ;
890+ Assert . Contains ( "fa-rotate-90" , bars [ 0 ] . ClassName ) ;
891+ Assert . DoesNotContain ( "fa-rotate-90" , bars [ 1 ] . ClassName ) ;
892+ Assert . Contains ( "fa-rotate-90" , bars [ 2 ] . ClassName ) ;
893893 }
894894
895895 [ Fact ]
0 commit comments