File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
src/BootstrapBlazor/Components/Table Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 990990 }
991991 @if (ShowResetButton )
992992 {
993- < Button Color = " Color.Secondary" Icon = " @ResetSearchButtonIcon" OnClickWithoutRender = " ClearSearchClick" >
993+ < Button Color = " Color.Secondary" Icon = " @ResetSearchButtonIcon" OnClickWithoutRender = " ClearSearchClick"
994+ class = " btn-table-reset" >
994995 < span class = " d-none d-sm-inline-block" > @ResetSearchButtonText < / span >
995996 < / Button >
996997 }
997998 @if (ShowSearchButton )
998999 {
999- < Button Color = " Color.Secondary" Icon = " @SearchButtonIcon" OnClickWithoutRender = " SearchClick" >
1000+ < Button Color = " Color.Secondary" Icon = " @SearchButtonIcon" OnClickWithoutRender = " SearchClick"
1001+ class = " btn-table-search" >
10001002 < span class = " d-none d-sm-inline-block" > @SearchButtonText < / span >
10011003 < / Button >
10021004 }
Original file line number Diff line number Diff line change @@ -3861,7 +3861,7 @@ public async Task CustomerSearchTemplate_Ok()
38613861 } ) ;
38623862 } ) ;
38633863
3864- var resetButton = cut . Find ( ".fa-trash-can " ) ;
3864+ var resetButton = cut . Find ( ".btn-table-reset " ) ;
38653865 await cut . InvokeAsync ( ( ) => resetButton . Click ( ) ) ;
38663866 Assert . Null ( searchModel . Name ) ;
38673867
@@ -3935,7 +3935,7 @@ public async Task SearchTemplate_Null()
39353935 var table = cut . FindComponent < Table < Foo > > ( ) ;
39363936 table . Instance . SearchModel . Name = "Test" ;
39373937
3938- var resetButton = cut . Find ( ".fa-trash-can " ) ;
3938+ var resetButton = cut . Find ( ".btn-table-reset " ) ;
39393939 await cut . InvokeAsync ( ( ) => resetButton . Click ( ) ) ;
39403940 Assert . Null ( table . Instance . SearchModel . Name ) ;
39413941 }
@@ -4119,7 +4119,7 @@ public async Task ResetSearch_Ok()
41194119 } ) ;
41204120 } ) ;
41214121
4122- var resetButton = cut . Find ( ".fa-trash-can " ) ;
4122+ var resetButton = cut . Find ( ".btn-table-reset " ) ;
41234123 await cut . InvokeAsync ( ( ) => resetButton . Click ( ) ) ;
41244124
41254125 Assert . True ( reset ) ;
You can’t perform that action at this time.
0 commit comments