Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change calling js #321

Merged
merged 2 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
public TabPage ActivePage { get; set; }
List<TabPage> Pages = new List<TabPage>();

private IJSObjectReference? _module;

internal void AddPage(TabPage tabPage)
{
Pages.Add(tabPage);
Expand All @@ -42,7 +44,15 @@
{
ActivePage = page;

var module = await JSRuntime.InvokeAsync<IJSObjectReference>("import", "/js/addToolTipsAndPopOvers.js");
await module.InvokeVoidAsync("addToolTipsAndPopOvers");
await _module.InvokeVoidAsync("addToolTipsAndPopOvers");
}

protected override async Task OnAfterRenderAsync(bool firstRender)
{
if(firstRender)
await JSRuntime.InvokeAsync<IJSObjectReference>("import", "/_content/AXSharp.Presentation.Blazor.Controls/js/bootstrap.bundle.min.js");

if (_module == null)
_module = await JSRuntime.InvokeAsync<IJSObjectReference>("import", "/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js");

Check failure on line 56 in src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/Layouts/TabControlComponents/TabControl.razor

View workflow job for this annotation

GitHub Actions / Test report

AXSharp.RenderableContent.Tests.RenderableContentTests ► Render_prgWeatherStations_Tabs_Successfull

Failed test found in: TestResults/AXSharp.RenderableContent.Tests.csproj_net7.0.xml Error: Bunit.JSRuntimeUnhandledInvocationException : bUnit's JSInterop has not been configured to handle the call: InvokeAsync<IJSObjectReference>("import", "/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js") Configure bUnit's JSInterop to handle the call with following: SetupModule("/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js") The setup methods are available on an instance of the BunitJSInterop or BunitJSModuleInterop type. The standard BunitJSInterop is available through the TestContext.JSInterop property, and a BunitJSModuleInterop instance is returned from calling SetupModule on a BunitJSInterop instance.
Raw output
Bunit.JSRuntimeUnhandledInvocationException : bUnit's JSInterop has not been configured to handle the call:

    InvokeAsync<IJSObjectReference>("import", "/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js")

Configure bUnit's JSInterop to handle the call with following:

    SetupModule("/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js")

The setup methods are available on an instance of the BunitJSInterop or
BunitJSModuleInterop type. The standard BunitJSInterop is available
through the TestContext.JSInterop property, and a BunitJSModuleInterop
instance is returned from calling SetupModule on a BunitJSInterop instance.

   at Bunit.BunitJSInterop.TryHandlePlannedInvocation[TValue](JSRuntimeInvocation invocation) in /_/src/bunit.web/JSInterop/BunitJSInterop.cs:line 83
   at Bunit.BunitJSInterop.HandleInvocation[TValue](JSRuntimeInvocation invocation) in /_/src/bunit.web/JSInterop/BunitJSInterop.cs:line 68
   at Bunit.JSInterop.Implementation.JSRuntimeExtensions.HandleInvokeAsync[TValue](BunitJSInterop jSInterop, String identifier, Object[] args) in /_/src/bunit.web/JSInterop/Implementation/JSRuntimeExtensions.cs:line 9
   at Bunit.JSInterop.BunitJSRuntime.InvokeAsync[TValue](String identifier, Object[] args) in /_/src/bunit.web/JSInterop/Implementation/BunitJSRuntime.cs:line 20
   at Microsoft.JSInterop.JSRuntimeExtensions.InvokeAsync[TValue](IJSRuntime jsRuntime, String identifier, Object[] args)
   at AXSharp.Presentation.Blazor.Controls.Layouts.TabControlComponents.TabControl.OnAfterRenderAsync(Boolean firstRender) in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\src\AXSharp.Presentation.Blazor.Controls\Layouts\TabControlComponents\TabControl.razor:line 56
   at Bunit.Rendering.TestRenderer.AssertNoUnhandledExceptions() in /_/src/bunit.core/Rendering/TestRenderer.cs:line 376
   at Bunit.Rendering.TestRenderer.Render[TResult](RenderFragment renderFragment, Func`2 activator) in /_/src/bunit.core/Rendering/TestRenderer.cs:line 239
   at Bunit.Rendering.TestRenderer.RenderFragment(RenderFragment renderFragment) in /_/src/bunit.core/Rendering/TestRenderer.cs:line 48
   at Bunit.Extensions.TestContextBaseRenderExtensions.RenderInsideRenderTree(TestContextBase testContext, RenderFragment renderFragment) in /_/src/bunit.core/Extensions/TestContextBaseRenderExtensions.cs:line 43
   at Bunit.Extensions.TestContextBaseRenderExtensions.RenderInsideRenderTree[TComponent](TestContextBase testContext, RenderFragment renderFragment) in /_/src/bunit.core/Extensions/TestContextBaseRenderExtensions.cs:line 23
   at Bunit.TestContext.Render[TComponent](RenderFragment renderFragment) in /_/src/bunit.web/TestContext.cs:line 66
   at Bunit.TestContext.RenderComponent[TComponent](Action`1 parameterBuilder) in /_/src/bunit.web/TestContext.cs:line 52
   at AXSharp.RenderableContent.Tests.RenderableContentTests.Compare(String fileName, Object twin, String presentation) in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\tests\sandbox\AXSharp.RenderableContent.Tests\RenderableContentTests.cs:line 39
   at AXSharp.RenderableContent.Tests.RenderableContentTests.Render_prgWeatherStations_Tabs_Successfull() in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\tests\sandbox\AXSharp.RenderableContent.Tests\RenderableContentTests.cs:line 62
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Check failure on line 56 in src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/Layouts/TabControlComponents/TabControl.razor

View workflow job for this annotation

GitHub Actions / Test report

AXSharp.RenderableContent.Tests.RenderableContentTests ► Render_stTestLayoutOverwrite_Success

Failed test found in: TestResults/AXSharp.RenderableContent.Tests.csproj_net7.0.xml Error: Bunit.JSRuntimeUnhandledInvocationException : bUnit's JSInterop has not been configured to handle the call: InvokeAsync<IJSObjectReference>("import", "/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js") Configure bUnit's JSInterop to handle the call with following: SetupModule("/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js") The setup methods are available on an instance of the BunitJSInterop or BunitJSModuleInterop type. The standard BunitJSInterop is available through the TestContext.JSInterop property, and a BunitJSModuleInterop instance is returned from calling SetupModule on a BunitJSInterop instance.
Raw output
Bunit.JSRuntimeUnhandledInvocationException : bUnit's JSInterop has not been configured to handle the call:

    InvokeAsync<IJSObjectReference>("import", "/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js")

Configure bUnit's JSInterop to handle the call with following:

    SetupModule("/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js")

The setup methods are available on an instance of the BunitJSInterop or
BunitJSModuleInterop type. The standard BunitJSInterop is available
through the TestContext.JSInterop property, and a BunitJSModuleInterop
instance is returned from calling SetupModule on a BunitJSInterop instance.

   at Bunit.BunitJSInterop.TryHandlePlannedInvocation[TValue](JSRuntimeInvocation invocation) in /_/src/bunit.web/JSInterop/BunitJSInterop.cs:line 83
   at Bunit.BunitJSInterop.HandleInvocation[TValue](JSRuntimeInvocation invocation) in /_/src/bunit.web/JSInterop/BunitJSInterop.cs:line 68
   at Bunit.JSInterop.Implementation.JSRuntimeExtensions.HandleInvokeAsync[TValue](BunitJSInterop jSInterop, String identifier, Object[] args) in /_/src/bunit.web/JSInterop/Implementation/JSRuntimeExtensions.cs:line 9
   at Bunit.JSInterop.BunitJSRuntime.InvokeAsync[TValue](String identifier, Object[] args) in /_/src/bunit.web/JSInterop/Implementation/BunitJSRuntime.cs:line 20
   at Microsoft.JSInterop.JSRuntimeExtensions.InvokeAsync[TValue](IJSRuntime jsRuntime, String identifier, Object[] args)
   at AXSharp.Presentation.Blazor.Controls.Layouts.TabControlComponents.TabControl.OnAfterRenderAsync(Boolean firstRender) in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\src\AXSharp.Presentation.Blazor.Controls\Layouts\TabControlComponents\TabControl.razor:line 56
   at Bunit.Rendering.TestRenderer.AssertNoUnhandledExceptions() in /_/src/bunit.core/Rendering/TestRenderer.cs:line 376
   at Bunit.Rendering.TestRenderer.Render[TResult](RenderFragment renderFragment, Func`2 activator) in /_/src/bunit.core/Rendering/TestRenderer.cs:line 239
   at Bunit.Rendering.TestRenderer.RenderFragment(RenderFragment renderFragment) in /_/src/bunit.core/Rendering/TestRenderer.cs:line 48
   at Bunit.Extensions.TestContextBaseRenderExtensions.RenderInsideRenderTree(TestContextBase testContext, RenderFragment renderFragment) in /_/src/bunit.core/Extensions/TestContextBaseRenderExtensions.cs:line 43
   at Bunit.Extensions.TestContextBaseRenderExtensions.RenderInsideRenderTree[TComponent](TestContextBase testContext, RenderFragment renderFragment) in /_/src/bunit.core/Extensions/TestContextBaseRenderExtensions.cs:line 23
   at Bunit.TestContext.Render[TComponent](RenderFragment renderFragment) in /_/src/bunit.web/TestContext.cs:line 66
   at Bunit.TestContext.RenderComponent[TComponent](Action`1 parameterBuilder) in /_/src/bunit.web/TestContext.cs:line 52
   at AXSharp.RenderableContent.Tests.RenderableContentTests.Compare(String fileName, Object twin, String presentation) in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\tests\sandbox\AXSharp.RenderableContent.Tests\RenderableContentTests.cs:line 39
   at AXSharp.RenderableContent.Tests.RenderableContentTests.Render_stTestLayoutOverwrite_Success() in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\tests\sandbox\AXSharp.RenderableContent.Tests\RenderableContentTests.cs:line 191
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Check failure on line 56 in src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/Layouts/TabControlComponents/TabControl.razor

View workflow job for this annotation

GitHub Actions / Test report

AXSharp.RenderableContent.Tests.RenderableContentTests ► Render_stTestLayouts_Border_Tabs_Successfull

Failed test found in: TestResults/AXSharp.RenderableContent.Tests.csproj_net7.0.xml Error: Bunit.JSRuntimeUnhandledInvocationException : bUnit's JSInterop has not been configured to handle the call: InvokeAsync<IJSObjectReference>("import", "/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js") Configure bUnit's JSInterop to handle the call with following: SetupModule("/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js") The setup methods are available on an instance of the BunitJSInterop or BunitJSModuleInterop type. The standard BunitJSInterop is available through the TestContext.JSInterop property, and a BunitJSModuleInterop instance is returned from calling SetupModule on a BunitJSInterop instance.
Raw output
Bunit.JSRuntimeUnhandledInvocationException : bUnit's JSInterop has not been configured to handle the call:

    InvokeAsync<IJSObjectReference>("import", "/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js")

Configure bUnit's JSInterop to handle the call with following:

    SetupModule("/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js")

The setup methods are available on an instance of the BunitJSInterop or
BunitJSModuleInterop type. The standard BunitJSInterop is available
through the TestContext.JSInterop property, and a BunitJSModuleInterop
instance is returned from calling SetupModule on a BunitJSInterop instance.

   at Bunit.BunitJSInterop.TryHandlePlannedInvocation[TValue](JSRuntimeInvocation invocation) in /_/src/bunit.web/JSInterop/BunitJSInterop.cs:line 83
   at Bunit.BunitJSInterop.HandleInvocation[TValue](JSRuntimeInvocation invocation) in /_/src/bunit.web/JSInterop/BunitJSInterop.cs:line 68
   at Bunit.JSInterop.Implementation.JSRuntimeExtensions.HandleInvokeAsync[TValue](BunitJSInterop jSInterop, String identifier, Object[] args) in /_/src/bunit.web/JSInterop/Implementation/JSRuntimeExtensions.cs:line 9
   at Bunit.JSInterop.BunitJSRuntime.InvokeAsync[TValue](String identifier, Object[] args) in /_/src/bunit.web/JSInterop/Implementation/BunitJSRuntime.cs:line 20
   at Microsoft.JSInterop.JSRuntimeExtensions.InvokeAsync[TValue](IJSRuntime jsRuntime, String identifier, Object[] args)
   at AXSharp.Presentation.Blazor.Controls.Layouts.TabControlComponents.TabControl.OnAfterRenderAsync(Boolean firstRender) in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\src\AXSharp.Presentation.Blazor.Controls\Layouts\TabControlComponents\TabControl.razor:line 56
   at Bunit.Rendering.TestRenderer.AssertNoUnhandledExceptions() in /_/src/bunit.core/Rendering/TestRenderer.cs:line 376
   at Bunit.Rendering.TestRenderer.Render[TResult](RenderFragment renderFragment, Func`2 activator) in /_/src/bunit.core/Rendering/TestRenderer.cs:line 239
   at Bunit.Rendering.TestRenderer.RenderFragment(RenderFragment renderFragment) in /_/src/bunit.core/Rendering/TestRenderer.cs:line 48
   at Bunit.Extensions.TestContextBaseRenderExtensions.RenderInsideRenderTree(TestContextBase testContext, RenderFragment renderFragment) in /_/src/bunit.core/Extensions/TestContextBaseRenderExtensions.cs:line 43
   at Bunit.Extensions.TestContextBaseRenderExtensions.RenderInsideRenderTree[TComponent](TestContextBase testContext, RenderFragment renderFragment) in /_/src/bunit.core/Extensions/TestContextBaseRenderExtensions.cs:line 23
   at Bunit.TestContext.Render[TComponent](RenderFragment renderFragment) in /_/src/bunit.web/TestContext.cs:line 66
   at Bunit.TestContext.RenderComponent[TComponent](Action`1 parameterBuilder) in /_/src/bunit.web/TestContext.cs:line 52
   at AXSharp.RenderableContent.Tests.RenderableContentTests.Compare(String fileName, Object twin, String presentation) in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\tests\sandbox\AXSharp.RenderableContent.Tests\RenderableContentTests.cs:line 39
   at AXSharp.RenderableContent.Tests.RenderableContentTests.Render_stTestLayouts_Border_Tabs_Successfull() in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\tests\sandbox\AXSharp.RenderableContent.Tests\RenderableContentTests.cs:line 447
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Check failure on line 56 in src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/Layouts/TabControlComponents/TabControl.razor

View workflow job for this annotation

GitHub Actions / Test report

AXSharp.RenderableContent.Tests.RenderableContentTests ► Render_stTestLayouts_GroupBox_Tabs_Successfull

Failed test found in: TestResults/AXSharp.RenderableContent.Tests.csproj_net7.0.xml Error: Bunit.JSRuntimeUnhandledInvocationException : bUnit's JSInterop has not been configured to handle the call: InvokeAsync<IJSObjectReference>("import", "/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js") Configure bUnit's JSInterop to handle the call with following: SetupModule("/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js") The setup methods are available on an instance of the BunitJSInterop or BunitJSModuleInterop type. The standard BunitJSInterop is available through the TestContext.JSInterop property, and a BunitJSModuleInterop instance is returned from calling SetupModule on a BunitJSInterop instance.
Raw output
Bunit.JSRuntimeUnhandledInvocationException : bUnit's JSInterop has not been configured to handle the call:

    InvokeAsync<IJSObjectReference>("import", "/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js")

Configure bUnit's JSInterop to handle the call with following:

    SetupModule("/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js")

The setup methods are available on an instance of the BunitJSInterop or
BunitJSModuleInterop type. The standard BunitJSInterop is available
through the TestContext.JSInterop property, and a BunitJSModuleInterop
instance is returned from calling SetupModule on a BunitJSInterop instance.

   at Bunit.BunitJSInterop.TryHandlePlannedInvocation[TValue](JSRuntimeInvocation invocation) in /_/src/bunit.web/JSInterop/BunitJSInterop.cs:line 83
   at Bunit.BunitJSInterop.HandleInvocation[TValue](JSRuntimeInvocation invocation) in /_/src/bunit.web/JSInterop/BunitJSInterop.cs:line 68
   at Bunit.JSInterop.Implementation.JSRuntimeExtensions.HandleInvokeAsync[TValue](BunitJSInterop jSInterop, String identifier, Object[] args) in /_/src/bunit.web/JSInterop/Implementation/JSRuntimeExtensions.cs:line 9
   at Bunit.JSInterop.BunitJSRuntime.InvokeAsync[TValue](String identifier, Object[] args) in /_/src/bunit.web/JSInterop/Implementation/BunitJSRuntime.cs:line 20
   at Microsoft.JSInterop.JSRuntimeExtensions.InvokeAsync[TValue](IJSRuntime jsRuntime, String identifier, Object[] args)
   at AXSharp.Presentation.Blazor.Controls.Layouts.TabControlComponents.TabControl.OnAfterRenderAsync(Boolean firstRender) in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\src\AXSharp.Presentation.Blazor.Controls\Layouts\TabControlComponents\TabControl.razor:line 56
   at Bunit.Rendering.TestRenderer.AssertNoUnhandledExceptions() in /_/src/bunit.core/Rendering/TestRenderer.cs:line 376
   at Bunit.Rendering.TestRenderer.Render[TResult](RenderFragment renderFragment, Func`2 activator) in /_/src/bunit.core/Rendering/TestRenderer.cs:line 239
   at Bunit.Rendering.TestRenderer.RenderFragment(RenderFragment renderFragment) in /_/src/bunit.core/Rendering/TestRenderer.cs:line 48
   at Bunit.Extensions.TestContextBaseRenderExtensions.RenderInsideRenderTree(TestContextBase testContext, RenderFragment renderFragment) in /_/src/bunit.core/Extensions/TestContextBaseRenderExtensions.cs:line 43
   at Bunit.Extensions.TestContextBaseRenderExtensions.RenderInsideRenderTree[TComponent](TestContextBase testContext, RenderFragment renderFragment) in /_/src/bunit.core/Extensions/TestContextBaseRenderExtensions.cs:line 23
   at Bunit.TestContext.Render[TComponent](RenderFragment renderFragment) in /_/src/bunit.web/TestContext.cs:line 66
   at Bunit.TestContext.RenderComponent[TComponent](Action`1 parameterBuilder) in /_/src/bunit.web/TestContext.cs:line 52
   at AXSharp.RenderableContent.Tests.RenderableContentTests.Compare(String fileName, Object twin, String presentation) in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\tests\sandbox\AXSharp.RenderableContent.Tests\RenderableContentTests.cs:line 39
   at AXSharp.RenderableContent.Tests.RenderableContentTests.Render_stTestLayouts_GroupBox_Tabs_Successfull() in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\tests\sandbox\AXSharp.RenderableContent.Tests\RenderableContentTests.cs:line 431
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Check failure on line 56 in src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/Layouts/TabControlComponents/TabControl.razor

View workflow job for this annotation

GitHub Actions / Test report

AXSharp.RenderableContent.Tests.RenderableContentTests ► Render_stTestLayouts_Tabs_Successfull

Failed test found in: TestResults/AXSharp.RenderableContent.Tests.csproj_net7.0.xml Error: Bunit.JSRuntimeUnhandledInvocationException : bUnit's JSInterop has not been configured to handle the call: InvokeAsync<IJSObjectReference>("import", "/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js") Configure bUnit's JSInterop to handle the call with following: SetupModule("/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js") The setup methods are available on an instance of the BunitJSInterop or BunitJSModuleInterop type. The standard BunitJSInterop is available through the TestContext.JSInterop property, and a BunitJSModuleInterop instance is returned from calling SetupModule on a BunitJSInterop instance.
Raw output
Bunit.JSRuntimeUnhandledInvocationException : bUnit's JSInterop has not been configured to handle the call:

    InvokeAsync<IJSObjectReference>("import", "/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js")

Configure bUnit's JSInterop to handle the call with following:

    SetupModule("/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js")

The setup methods are available on an instance of the BunitJSInterop or
BunitJSModuleInterop type. The standard BunitJSInterop is available
through the TestContext.JSInterop property, and a BunitJSModuleInterop
instance is returned from calling SetupModule on a BunitJSInterop instance.

   at Bunit.BunitJSInterop.TryHandlePlannedInvocation[TValue](JSRuntimeInvocation invocation) in /_/src/bunit.web/JSInterop/BunitJSInterop.cs:line 83
   at Bunit.BunitJSInterop.HandleInvocation[TValue](JSRuntimeInvocation invocation) in /_/src/bunit.web/JSInterop/BunitJSInterop.cs:line 68
   at Bunit.JSInterop.Implementation.JSRuntimeExtensions.HandleInvokeAsync[TValue](BunitJSInterop jSInterop, String identifier, Object[] args) in /_/src/bunit.web/JSInterop/Implementation/JSRuntimeExtensions.cs:line 9
   at Bunit.JSInterop.BunitJSRuntime.InvokeAsync[TValue](String identifier, Object[] args) in /_/src/bunit.web/JSInterop/Implementation/BunitJSRuntime.cs:line 20
   at Microsoft.JSInterop.JSRuntimeExtensions.InvokeAsync[TValue](IJSRuntime jsRuntime, String identifier, Object[] args)
   at AXSharp.Presentation.Blazor.Controls.Layouts.TabControlComponents.TabControl.OnAfterRenderAsync(Boolean firstRender) in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\src\AXSharp.Presentation.Blazor.Controls\Layouts\TabControlComponents\TabControl.razor:line 56
   at Bunit.Rendering.TestRenderer.AssertNoUnhandledExceptions() in /_/src/bunit.core/Rendering/TestRenderer.cs:line 376
   at Bunit.Rendering.TestRenderer.Render[TResult](RenderFragment renderFragment, Func`2 activator) in /_/src/bunit.core/Rendering/TestRenderer.cs:line 239
   at Bunit.Rendering.TestRenderer.RenderFragment(RenderFragment renderFragment) in /_/src/bunit.core/Rendering/TestRenderer.cs:line 48
   at Bunit.Extensions.TestContextBaseRenderExtensions.RenderInsideRenderTree(TestContextBase testContext, RenderFragment renderFragment) in /_/src/bunit.core/Extensions/TestContextBaseRenderExtensions.cs:line 43
   at Bunit.Extensions.TestContextBaseRenderExtensions.RenderInsideRenderTree[TComponent](TestContextBase testContext, RenderFragment renderFragment) in /_/src/bunit.core/Extensions/TestContextBaseRenderExtensions.cs:line 23
   at Bunit.TestContext.Render[TComponent](RenderFragment renderFragment) in /_/src/bunit.web/TestContext.cs:line 66
   at Bunit.TestContext.RenderComponent[TComponent](Action`1 parameterBuilder) in /_/src/bunit.web/TestContext.cs:line 52
   at AXSharp.RenderableContent.Tests.RenderableContentTests.Compare(String fileName, Object twin, String presentation) in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\tests\sandbox\AXSharp.RenderableContent.Tests\RenderableContentTests.cs:line 39
   at AXSharp.RenderableContent.Tests.RenderableContentTests.Render_stTestLayouts_Tabs_Successfull() in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\tests\sandbox\AXSharp.RenderableContent.Tests\RenderableContentTests.cs:line 335
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Check failure on line 56 in src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/Layouts/TabControlComponents/TabControl.razor

View workflow job for this annotation

GitHub Actions / Test report

AXSharp.RenderableContent.Tests.RenderableContentTests ► Render_stTestMultipleLayouts_Success

Failed test found in: TestResults/AXSharp.RenderableContent.Tests.csproj_net7.0.xml Error: Bunit.JSRuntimeUnhandledInvocationException : bUnit's JSInterop has not been configured to handle the call: InvokeAsync<IJSObjectReference>("import", "/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js") Configure bUnit's JSInterop to handle the call with following: SetupModule("/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js") The setup methods are available on an instance of the BunitJSInterop or BunitJSModuleInterop type. The standard BunitJSInterop is available through the TestContext.JSInterop property, and a BunitJSModuleInterop instance is returned from calling SetupModule on a BunitJSInterop instance.
Raw output
Bunit.JSRuntimeUnhandledInvocationException : bUnit's JSInterop has not been configured to handle the call:

    InvokeAsync<IJSObjectReference>("import", "/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js")

Configure bUnit's JSInterop to handle the call with following:

    SetupModule("/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js")

The setup methods are available on an instance of the BunitJSInterop or
BunitJSModuleInterop type. The standard BunitJSInterop is available
through the TestContext.JSInterop property, and a BunitJSModuleInterop
instance is returned from calling SetupModule on a BunitJSInterop instance.

   at Bunit.BunitJSInterop.TryHandlePlannedInvocation[TValue](JSRuntimeInvocation invocation) in /_/src/bunit.web/JSInterop/BunitJSInterop.cs:line 83
   at Bunit.BunitJSInterop.HandleInvocation[TValue](JSRuntimeInvocation invocation) in /_/src/bunit.web/JSInterop/BunitJSInterop.cs:line 68
   at Bunit.JSInterop.Implementation.JSRuntimeExtensions.HandleInvokeAsync[TValue](BunitJSInterop jSInterop, String identifier, Object[] args) in /_/src/bunit.web/JSInterop/Implementation/JSRuntimeExtensions.cs:line 9
   at Bunit.JSInterop.BunitJSRuntime.InvokeAsync[TValue](String identifier, Object[] args) in /_/src/bunit.web/JSInterop/Implementation/BunitJSRuntime.cs:line 20
   at Microsoft.JSInterop.JSRuntimeExtensions.InvokeAsync[TValue](IJSRuntime jsRuntime, String identifier, Object[] args)
   at AXSharp.Presentation.Blazor.Controls.Layouts.TabControlComponents.TabControl.OnAfterRenderAsync(Boolean firstRender) in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\src\AXSharp.Presentation.Blazor.Controls\Layouts\TabControlComponents\TabControl.razor:line 56
   at Bunit.Rendering.TestRenderer.AssertNoUnhandledExceptions() in /_/src/bunit.core/Rendering/TestRenderer.cs:line 376
   at Bunit.Rendering.TestRenderer.Render[TResult](RenderFragment renderFragment, Func`2 activator) in /_/src/bunit.core/Rendering/TestRenderer.cs:line 239
   at Bunit.Rendering.TestRenderer.RenderFragment(RenderFragment renderFragment) in /_/src/bunit.core/Rendering/TestRenderer.cs:line 48
   at Bunit.Extensions.TestContextBaseRenderExtensions.RenderInsideRenderTree(TestContextBase testContext, RenderFragment renderFragment) in /_/src/bunit.core/Extensions/TestContextBaseRenderExtensions.cs:line 43
   at Bunit.Extensions.TestContextBaseRenderExtensions.RenderInsideRenderTree[TComponent](TestContextBase testContext, RenderFragment renderFragment) in /_/src/bunit.core/Extensions/TestContextBaseRenderExtensions.cs:line 23
   at Bunit.TestContext.Render[TComponent](RenderFragment renderFragment) in /_/src/bunit.web/TestContext.cs:line 66
   at Bunit.TestContext.RenderComponent[TComponent](Action`1 parameterBuilder) in /_/src/bunit.web/TestContext.cs:line 52
   at AXSharp.RenderableContent.Tests.RenderableContentTests.Compare(String fileName, Object twin, String presentation) in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\tests\sandbox\AXSharp.RenderableContent.Tests\RenderableContentTests.cs:line 39
   at AXSharp.RenderableContent.Tests.RenderableContentTests.Render_stTestMultipleLayouts_Success() in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\tests\sandbox\AXSharp.RenderableContent.Tests\RenderableContentTests.cs:line 223
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Check failure on line 56 in src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/Layouts/TabControlComponents/TabControl.razor

View workflow job for this annotation

GitHub Actions / Test report

AXSharp.RenderableContent.Tests.RenderableContentTests ► Render_stTestMultipleNested_TabsAndComples_Successfull

Failed test found in: TestResults/AXSharp.RenderableContent.Tests.csproj_net7.0.xml Error: Bunit.JSRuntimeUnhandledInvocationException : bUnit's JSInterop has not been configured to handle the call: InvokeAsync<IJSObjectReference>("import", "/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js") Configure bUnit's JSInterop to handle the call with following: SetupModule("/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js") The setup methods are available on an instance of the BunitJSInterop or BunitJSModuleInterop type. The standard BunitJSInterop is available through the TestContext.JSInterop property, and a BunitJSModuleInterop instance is returned from calling SetupModule on a BunitJSInterop instance.
Raw output
Bunit.JSRuntimeUnhandledInvocationException : bUnit's JSInterop has not been configured to handle the call:

    InvokeAsync<IJSObjectReference>("import", "/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js")

Configure bUnit's JSInterop to handle the call with following:

    SetupModule("/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js")

The setup methods are available on an instance of the BunitJSInterop or
BunitJSModuleInterop type. The standard BunitJSInterop is available
through the TestContext.JSInterop property, and a BunitJSModuleInterop
instance is returned from calling SetupModule on a BunitJSInterop instance.

   at Bunit.BunitJSInterop.TryHandlePlannedInvocation[TValue](JSRuntimeInvocation invocation) in /_/src/bunit.web/JSInterop/BunitJSInterop.cs:line 83
   at Bunit.BunitJSInterop.HandleInvocation[TValue](JSRuntimeInvocation invocation) in /_/src/bunit.web/JSInterop/BunitJSInterop.cs:line 68
   at Bunit.JSInterop.Implementation.JSRuntimeExtensions.HandleInvokeAsync[TValue](BunitJSInterop jSInterop, String identifier, Object[] args) in /_/src/bunit.web/JSInterop/Implementation/JSRuntimeExtensions.cs:line 9
   at Bunit.JSInterop.BunitJSRuntime.InvokeAsync[TValue](String identifier, Object[] args) in /_/src/bunit.web/JSInterop/Implementation/BunitJSRuntime.cs:line 20
   at Microsoft.JSInterop.JSRuntimeExtensions.InvokeAsync[TValue](IJSRuntime jsRuntime, String identifier, Object[] args)
   at AXSharp.Presentation.Blazor.Controls.Layouts.TabControlComponents.TabControl.OnAfterRenderAsync(Boolean firstRender) in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\src\AXSharp.Presentation.Blazor.Controls\Layouts\TabControlComponents\TabControl.razor:line 56
   at Bunit.Rendering.TestRenderer.AssertNoUnhandledExceptions() in /_/src/bunit.core/Rendering/TestRenderer.cs:line 376
   at Bunit.Rendering.TestRenderer.Render[TResult](RenderFragment renderFragment, Func`2 activator) in /_/src/bunit.core/Rendering/TestRenderer.cs:line 239
   at Bunit.Rendering.TestRenderer.RenderFragment(RenderFragment renderFragment) in /_/src/bunit.core/Rendering/TestRenderer.cs:line 48
   at Bunit.Extensions.TestContextBaseRenderExtensions.RenderInsideRenderTree(TestContextBase testContext, RenderFragment renderFragment) in /_/src/bunit.core/Extensions/TestContextBaseRenderExtensions.cs:line 43
   at Bunit.Extensions.TestContextBaseRenderExtensions.RenderInsideRenderTree[TComponent](TestContextBase testContext, RenderFragment renderFragment) in /_/src/bunit.core/Extensions/TestContextBaseRenderExtensions.cs:line 23
   at Bunit.TestContext.Render[TComponent](RenderFragment renderFragment) in /_/src/bunit.web/TestContext.cs:line 66
   at Bunit.TestContext.RenderComponent[TComponent](Action`1 parameterBuilder) in /_/src/bunit.web/TestContext.cs:line 52
   at AXSharp.RenderableContent.Tests.RenderableContentTests.Compare(String fileName, Object twin, String presentation) in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\tests\sandbox\AXSharp.RenderableContent.Tests\RenderableContentTests.cs:line 39
   at AXSharp.RenderableContent.Tests.RenderableContentTests.Render_stTestMultipleNested_TabsAndComples_Successfull() in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\tests\sandbox\AXSharp.RenderableContent.Tests\RenderableContentTests.cs:line 287
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Check failure on line 56 in src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/Layouts/TabControlComponents/TabControl.razor

View workflow job for this annotation

GitHub Actions / Test report

AXSharp.RenderableContent.Tests.RenderableContentTests ► Render_stTestSimpleNested_Success

Failed test found in: TestResults/AXSharp.RenderableContent.Tests.csproj_net7.0.xml Error: Bunit.JSRuntimeUnhandledInvocationException : bUnit's JSInterop has not been configured to handle the call: InvokeAsync<IJSObjectReference>("import", "/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js") Configure bUnit's JSInterop to handle the call with following: SetupModule("/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js") The setup methods are available on an instance of the BunitJSInterop or BunitJSModuleInterop type. The standard BunitJSInterop is available through the TestContext.JSInterop property, and a BunitJSModuleInterop instance is returned from calling SetupModule on a BunitJSInterop instance.
Raw output
Bunit.JSRuntimeUnhandledInvocationException : bUnit's JSInterop has not been configured to handle the call:

    InvokeAsync<IJSObjectReference>("import", "/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js")

Configure bUnit's JSInterop to handle the call with following:

    SetupModule("/_content/AXSharp.Presentation.Blazor.Controls/js/addToolTipsAndPopOvers.js")

The setup methods are available on an instance of the BunitJSInterop or
BunitJSModuleInterop type. The standard BunitJSInterop is available
through the TestContext.JSInterop property, and a BunitJSModuleInterop
instance is returned from calling SetupModule on a BunitJSInterop instance.

   at Bunit.BunitJSInterop.TryHandlePlannedInvocation[TValue](JSRuntimeInvocation invocation) in /_/src/bunit.web/JSInterop/BunitJSInterop.cs:line 83
   at Bunit.BunitJSInterop.HandleInvocation[TValue](JSRuntimeInvocation invocation) in /_/src/bunit.web/JSInterop/BunitJSInterop.cs:line 68
   at Bunit.JSInterop.Implementation.JSRuntimeExtensions.HandleInvokeAsync[TValue](BunitJSInterop jSInterop, String identifier, Object[] args) in /_/src/bunit.web/JSInterop/Implementation/JSRuntimeExtensions.cs:line 9
   at Bunit.JSInterop.BunitJSRuntime.InvokeAsync[TValue](String identifier, Object[] args) in /_/src/bunit.web/JSInterop/Implementation/BunitJSRuntime.cs:line 20
   at Microsoft.JSInterop.JSRuntimeExtensions.InvokeAsync[TValue](IJSRuntime jsRuntime, String identifier, Object[] args)
   at AXSharp.Presentation.Blazor.Controls.Layouts.TabControlComponents.TabControl.OnAfterRenderAsync(Boolean firstRender) in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\src\AXSharp.Presentation.Blazor.Controls\Layouts\TabControlComponents\TabControl.razor:line 56
   at Bunit.Rendering.TestRenderer.AssertNoUnhandledExceptions() in /_/src/bunit.core/Rendering/TestRenderer.cs:line 376
   at Bunit.Rendering.TestRenderer.Render[TResult](RenderFragment renderFragment, Func`2 activator) in /_/src/bunit.core/Rendering/TestRenderer.cs:line 239
   at Bunit.Rendering.TestRenderer.RenderFragment(RenderFragment renderFragment) in /_/src/bunit.core/Rendering/TestRenderer.cs:line 48
   at Bunit.Extensions.TestContextBaseRenderExtensions.RenderInsideRenderTree(TestContextBase testContext, RenderFragment renderFragment) in /_/src/bunit.core/Extensions/TestContextBaseRenderExtensions.cs:line 43
   at Bunit.Extensions.TestContextBaseRenderExtensions.RenderInsideRenderTree[TComponent](TestContextBase testContext, RenderFragment renderFragment) in /_/src/bunit.core/Extensions/TestContextBaseRenderExtensions.cs:line 23
   at Bunit.TestContext.Render[TComponent](RenderFragment renderFragment) in /_/src/bunit.web/TestContext.cs:line 66
   at Bunit.TestContext.RenderComponent[TComponent](Action`1 parameterBuilder) in /_/src/bunit.web/TestContext.cs:line 52
   at AXSharp.RenderableContent.Tests.RenderableContentTests.Compare(String fileName, Object twin, String presentation) in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\tests\sandbox\AXSharp.RenderableContent.Tests\RenderableContentTests.cs:line 39
   at AXSharp.RenderableContent.Tests.RenderableContentTests.Render_stTestSimpleNested_Success() in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.blazor\tests\sandbox\AXSharp.RenderableContent.Tests\RenderableContentTests.cs:line 271
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export function addToolTipsAndPopOvers() {
// Initialize tooltips
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
return new bootstrap.Tooltip(tooltipTriggerEl);
});

// Initialize popovers
var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'));
var popoverList = popoverTriggerList.map(function (popoverTriggerEl) {
return new bootstrap.Popover(popoverTriggerEl);
});
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

This file was deleted.

Loading