Bunit.Extensions.WaitForHelpers.WaitForFailedException : The assertion did not pass within the timeout period. If this test does not fail consistently, the reason may be that the wait timeout is too short, and the runtime did not have enough time to complete the necessary number of renders of the component under test. This can happen on highly utilized or slower hardware, for example. To determine if this is the cause, compare the check and render count(s) below and see if they match what is expected. If they do not, consider increasing the timeout, either at the individual method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)), or via the static TestContext.DefaultWaitTimeout property. Check count: 1. Component render count: 3. Total render count across all components: 0. ---- Shouldly.ShouldAssertException : cut.WaitForAssertion(JSInterop.Invocations["otDialog.activate"].Count should be 2 but was 1 at Bunit.RenderedComponentWaitForHelperExtensions.WaitForAssertion[TComponent](IRenderedComponent`1 renderedComponent, Action assertion, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForState.cs:line 77 at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ModalAccessibilityTests.Frame_TargetSwitchDuringDeferredActivation_IsSerialized() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/ModalAccessibilityTests.cs:line 105 at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) ----- Inner Stack Trace ----- at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ModalAccessibilityTests.<Frame_TargetSwitchDuringDeferredActivation_IsSerialized>b__5_4() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/ModalAccessibilityTests.cs:line 105 at Bunit.Extensions.WaitForHelpers.WaitForAssertionHelper`1.<>c__DisplayClass6_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForAssertionHelper.cs:line 35 at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173 [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.0.2+dd36e86129 (64-bit .NET 10.0.14) [xUnit.net 00:00:00.35] Discovering: ZB.MOM.WW.OtOpcUa.AdminUI.Tests [xUnit.net 00:00:01.03] Discovered: ZB.MOM.WW.OtOpcUa.AdminUI.Tests [xUnit.net 00:00:01.25] Starting: ZB.MOM.WW.OtOpcUa.AdminUI.Tests [xUnit.net 00:00:03.52] Bunit.Extensions.WaitForHelpers.WaitForFailedException : The assertion did not pass within the timeout period. [xUnit.net 00:00:03.52] [xUnit.net 00:00:03.52] If this test does not fail consistently, the reason may be that [xUnit.net 00:00:03.52] the wait timeout is too short, and the runtime did not have enough [xUnit.net 00:00:03.52] time to complete the necessary number of renders of the component under test. [xUnit.net 00:00:03.52] This can happen on highly utilized or slower hardware, for example. [xUnit.net 00:00:03.52] [xUnit.net 00:00:03.52] To determine if this is the cause, compare the check and render count(s) below [xUnit.net 00:00:03.52] and see if they match what is expected. If they do not, [xUnit.net 00:00:03.52] consider increasing the timeout, either at the individual [xUnit.net 00:00:03.52] method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)), [xUnit.net 00:00:03.52] or via the static TestContext.DefaultWaitTimeout property. [xUnit.net 00:00:03.52] [xUnit.net 00:00:03.52] Check count: 1. [xUnit.net 00:00:03.52] Component render count: 3. [xUnit.net 00:00:03.52] Total render count across all components: 0. [xUnit.net 00:00:03.52] ---- Shouldly.ShouldAssertException : cut.WaitForAssertion(JSInterop.Invocations["otDialog.activate"].Count [xUnit.net 00:00:03.52] should be [xUnit.net 00:00:03.52] 2 [xUnit.net 00:00:03.52] but was [xUnit.net 00:00:03.52] 1 [xUnit.net 00:00:03.52] Stack Trace: [xUnit.net 00:00:03.52] /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForState.cs(77,0): at Bunit.RenderedComponentWaitForHelperExtensions.WaitForAssertion[TComponent](IRenderedComponent`1 renderedComponent, Action assertion, Nullable`1 timeout) [xUnit.net 00:00:03.52] /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/ModalAccessibilityTests.cs(105,0): at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ModalAccessibilityTests.Frame_TargetSwitchDuringDeferredActivation_IsSerialized() [xUnit.net 00:00:03.52] at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) [xUnit.net 00:00:03.52] at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) [xUnit.net 00:00:03.52] ----- Inner Stack Trace ----- [xUnit.net 00:00:03.52] /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/ModalAccessibilityTests.cs(105,0): at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ModalAccessibilityTests.<Frame_TargetSwitchDuringDeferredActivation_IsSerialized>b__5_4() [xUnit.net 00:00:03.52] /_/src/bunit/Extensions/WaitForHelpers/WaitForAssertionHelper.cs(35,0): at Bunit.Extensions.WaitForHelpers.WaitForAssertionHelper`1.<>c__DisplayClass6_0.<.ctor>b__0() [xUnit.net 00:00:03.52] /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs(173,0): at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) [xUnit.net 00:00:04.86] Finished: ZB.MOM.WW.OtOpcUa.AdminUI.Tests [xUnit.net 00:00:03.52] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ModalAccessibilityTests.Frame_TargetSwitchDuringDeferredActivation_IsSerialized [FAIL]