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 0ab572a commit ff68ad3Copy full SHA for ff68ad3
test/UnitTest/Components/ScrollTest.cs
@@ -59,4 +59,17 @@ public void ChildContent_Ok()
59
60
Assert.Contains("I am scroll", cut.Markup);
61
}
62
+
63
+ [Fact]
64
+ public async Task ScrollToBottom_Ok()
65
+ {
66
+ var cut = Context.RenderComponent<Scroll>(builder => builder.Add(a => a.ChildContent, r =>
67
68
+ r.OpenElement(0, "div");
69
+ r.AddContent(1, "I am scroll");
70
+ r.CloseComponent();
71
+ }));
72
73
+ await cut.InvokeAsync(() => cut.Instance.ScrollToBottom());
74
+ }
75
0 commit comments