File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -93,17 +93,30 @@ public async Task TabStyle_Ok()
9393 }
9494
9595 [ Fact ]
96- public void ShowTabInHeader_Ok ( )
96+ public async Task ShowTabInHeader_Ok ( )
9797 {
9898 var cut = Context . RenderComponent < Layout > ( pb =>
9999 {
100100 pb . Add ( a => a . Id , "LayoutId" ) ;
101101 pb . Add ( a => a . UseTabSet , true ) ;
102- pb . Add ( a => a . ShowTabInHeader , true ) ;
102+ pb . Add ( a => a . ShowTabInHeader , false ) ;
103103 pb . Add ( a => a . Header , CreateHeader ( ) ) ;
104104 } ) ;
105- cut . Contains ( "data-bb-header-id=\" LayoutId__tab_header\" " ) ;
105+ await cut . InvokeAsync ( ( ) => cut . Instance . Render ( bulder => bulder . AddContent ( 0 , "" ) ) ) ;
106+
107+ cut . SetParametersAndRender ( pb =>
108+ {
109+ pb . Add ( a => a . ShowTabInHeader , true ) ;
110+ } ) ;
111+ cut . Contains ( "data-bb-header-id=\" LayoutId_tab_header\" " ) ;
106112 cut . Contains ( "tabs tabs-chrome" ) ;
113+ await cut . InvokeAsync ( ( ) => cut . Instance . Render ( bulder => bulder . AddContent ( 0 , "" ) ) ) ;
114+
115+ cut . SetParametersAndRender ( pb =>
116+ {
117+ pb . Add ( a => a . ShowTabInHeader , false ) ;
118+ } ) ;
119+ await cut . InvokeAsync ( ( ) => cut . Instance . Render ( bulder => bulder . AddContent ( 0 , "" ) ) ) ;
107120 }
108121
109122 [ Fact ]
You can’t perform that action at this time.
0 commit comments