We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e009ab commit 0c1d356Copy full SHA for 0c1d356
1 file changed
test/UnitTest/Components/DateTimePickerTest.cs
@@ -388,6 +388,25 @@ public async Task PickTimeMode_Ok()
388
pb.Add(a => a.TimeFormat, null);
389
});
390
}
391
+
392
+ [Fact]
393
+ public void IsButton_Ok()
394
+ {
395
+ var cut = Context.RenderComponent<DateTimePicker<DateTime>>(pb =>
396
397
+ pb.Add(a => a.IsButton, true);
398
+ pb.Add(a => a.ButtonColor, Color.Danger);
399
+ pb.Add(a => a.PickerButtonText, "Pick DateTime");
400
+ });
401
+ cut.Contains("btn dropdown-toggle btn-danger");
402
403
+ cut.SetParametersAndRender(pb =>
404
405
+ pb.Add(a => a.IsButton, false);
406
407
+ cut.DoesNotContain("btn dropdown-toggle btn-danger");
408
+ cut.Contains("dropdown-toggle form-control datetime-picker-input");
409
+ }
410
#endregion
411
412
#region DatePicker
0 commit comments