You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doesn't pass the test
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The state predicate did not pass before the timeout period passed. Check count: 1. Component render count: 2. Total render count: 2.
Expected behavior:
When click at the button we will see a message: pass the test
Version info:
bUnit version: 1.18.4
.NET Runtime and Blazor version: 6.0.11
MudBlazor version: 6.2.0
Additional context:
Nothing happened when trying to debug the clicking or when set a break inside openDialog method
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.
@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.
Activity
LunicLynx commentedon Apr 3, 2023
Have you tried debugging that your
openDialogmethod 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.
egil commentedon Apr 3, 2023
@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.