Closed brettwinters closed 3 years ago
Oops, while looking through the source for another issue I found that there is a delay timer of 250ms in the event handler. Adding an extra delay into the test solved the problem as follows:
cut.Find(".blazored-typeahead__input").Input("your_search_string_here");
await Task.Delay(350); //<--add a delay here
var results = cut.FindAll(".blazored-typeahead__result").Select(e => e.TextContent.Trim());
Sorry about that...
Hello
I'm trying to test Typeahead using bUnit, but when I trigger events on the
<input>
part of the control to load the results then the results are not rendered.Using BlazorWebAssembly demo as the target
the control is rendered successfully with the following markup as follows, which looks correct to me
Any ideas what I'm doing wrong?
Actually if someone could show me a demo of how they've comprehensively tested this control using bUnit that would be very useful
Thanks in advance