File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 66using AngleSharp . Dom ;
77using Microsoft . AspNetCore . Components . Web ;
88using Microsoft . Extensions . Localization ;
9+ using Microsoft . Extensions . Options ;
910using System . Reflection ;
1011
1112namespace UnitTest . Components ;
@@ -15,12 +16,15 @@ public class TableDialogTest : TableDialogTestBase
1516 [ Fact ]
1617 public async Task EditAsync_Ok ( )
1718 {
19+ var options = Context . Services . GetRequiredService < IOptionsMonitor < BootstrapBlazorOptions > > ( ) ;
20+ options . CurrentValue . ToastDelay = 0 ;
1821 var localizer = Context . Services . GetRequiredService < IStringLocalizer < Foo > > ( ) ;
1922 var items = Foo . GenerateFoo ( localizer , 2 ) ;
2023 var cut = Context . RenderComponent < BootstrapBlazorRoot > ( pb =>
2124 {
2225 pb . AddChildContent < Table < Foo > > ( pb =>
2326 {
27+ pb . Add ( a => a . ToastDelay , 4000 ) ;
2428 pb . Add ( a => a . RenderMode , TableRenderMode . Table ) ;
2529 pb . Add ( a => a . Items , items ) ;
2630 pb . Add ( a => a . EditDialogIsDraggable , true ) ;
You can’t perform that action at this time.
0 commit comments