Closed kostyrin closed 1 year ago
Have you tried debugging that your openDialog
method is invoked?
If not, this is probably something inside the MudBlazor library bUnit can't help you with. (async javascript for example).
Also be aware that this is probably not doing what you expect, in a UnitTest scenario.
ctx.Services.AddMudServices();
@kostyrin I know MudBlazor uses bUnit to test their components, so I would check in their repo how they test MudTooltip. You can also check out the discussion forum here, others before you have asked about testing components that use Mud.
I will convert this issue to a QA discussion.
BUnit doesn't work with MudTooltip
Good afternoon,
I wrote a sample
Example: Testing this component:
With this test:
Markup:
Results in this output:
Expected behavior:
When click at the button we will see a message: pass the test
Version info:
Additional context: Nothing happened when trying to debug the clicking or when set a break inside openDialog method