feat: HtmxLazy component #34
Merged
GitHub Actions / test-results
succeeded
May 5, 2024 in 1s
124 passed, 0 failed and 0 skipped
✅ /home/runner/work/Htmxor/Htmxor/TestResults/_fv-az975-700_2024-05-05_10_37_34.trx
124 tests were completed in 9s with 124 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Htmxor.Builder.HtmxorComponentEndpointDataSourceTest | 1✅ | 88ms | ||
Htmxor.Builder.HtmxorComponentEndpointMatcherPolicyTest | 22✅ | 198ms | ||
Htmxor.Configuration.HtmxHeadOutletTest | 2✅ | 1s | ||
Htmxor.DemoTestCases.BulkUpdate1Test | 1✅ | 745ms | ||
Htmxor.DemoTestCases.ClickToEdit1Test | 5✅ | 3s | ||
Htmxor.DemoTestCases.DeleteRowTest | 1✅ | 547ms | ||
Htmxor.DemoTestCases.HxValsTest | 1✅ | 682ms | ||
Htmxor.E2E.ClickToEditE2ETests | 1✅ | 469ms | ||
Htmxor.E2E.EventHandlerE2ETest | 1✅ | 303ms | ||
Htmxor.EventHandlerTest | 1✅ | 693ms | ||
Htmxor.HtmxorComponentRequestHostTest | 42✅ | 29s | ||
Htmxor.Http.HtmxResponseTests | 26✅ | 468ms | ||
Htmxor.Http.SwapStyleBuilderTests | 18✅ | 129ms | ||
Htmxor.RequestRoutingTest | 2✅ | 2s |
✅ Htmxor.Builder.HtmxorComponentEndpointDataSourceTest
✅ Registers_endpoints_based_on_HxRoute
✅ Htmxor.Builder.HtmxorComponentEndpointMatcherPolicyTest
✅ AppliesToEndpoints_with_hxroute_endpoint
✅ AppliesToEndpoints_with_route_only_endpoint
✅ ApplyAsync_HxRequest_HxEndpoint
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = "/foo", Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Current-URL", "/foo")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = "/foo", Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Current-URL", "/FOO")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = "/FOO", Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Current-URL", "/foo")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = "#foo", Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Target", "#foo")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = "#foo", Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Target", "#FOO")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = ["#foo", "#bar"], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Target", "#BAR")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = ["#foo", "#bar"], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Target", "#foo")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Trigger-Name", "#foo")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Trigger-Name", "#FOO")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Trigger", "#foo")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Trigger", "#FOO")])
✅ ApplyAsync_HxRequest_HxEndpoint_none_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = "/foo", Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Current-URL", "/bar")])
✅ ApplyAsync_HxRequest_HxEndpoint_none_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = "#foo", Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Target", "#bar")])
✅ ApplyAsync_HxRequest_HxEndpoint_none_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = ["#foo", "#bar"], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Target", "#baz")])
✅ ApplyAsync_HxRequest_HxEndpoint_none_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Trigger-Name", "#bar")])
✅ ApplyAsync_HxRequest_HxEndpoint_none_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Trigger", "#bar")])
✅ ApplyAsync_HxRequest_RouteEndpoint
✅ ApplyAsync_RouteRequest_HxEndpoint
✅ Htmxor.Configuration.HtmxHeadOutletTest
✅ HtmxConfig_default_swap_style_serializer
✅ HtmxConfig_serializer
✅ Htmxor.DemoTestCases.BulkUpdate1Test
✅ Hx_post_with_partial_return
✅ Htmxor.DemoTestCases.ClickToEdit1Test
✅ Hx_get_edit
✅ Hx_get_view
✅ Hx_put_view
✅ None_hx_get_edit
✅ None_hx_get_view
✅ Htmxor.DemoTestCases.DeleteRowTest
✅ Hx_delete_returns_204_without_content
✅ Htmxor.DemoTestCases.HxValsTest
✅ HxVals_correctly_escaped_by_renderer
✅ Htmxor.E2E.ClickToEditE2ETests
✅ Click_to_edit
✅ Htmxor.E2E.EventHandlerE2ETest
✅ Invoke_event_handler_methods
✅ Htmxor.EventHandlerTest
✅ Get_method
✅ Htmxor.HtmxorComponentRequestHostTest
✅ Route_values_in_component<Boolean>(isHtmxRequest: False, id: "boolValue", value: False)
✅ Route_values_in_component<Boolean>(isHtmxRequest: False, id: "boolValue", value: True)
✅ Route_values_in_component<Boolean>(isHtmxRequest: True, id: "boolValue", value: False)
✅ Route_values_in_component<Boolean>(isHtmxRequest: True, id: "boolValue", value: True)
✅ Route_values_in_component<Double>(isHtmxRequest: False, id: "doubleValue", value: -1.7976931348623157E+308)
✅ Route_values_in_component<Double>(isHtmxRequest: False, id: "doubleValue", value: 1.7976931348623157E+308)
✅ Route_values_in_component<Double>(isHtmxRequest: False, id: "doubleValue", value: 2.7182818284590451)
✅ Route_values_in_component<Double>(isHtmxRequest: True, id: "doubleValue", value: -1.7976931348623157E+308)
✅ Route_values_in_component<Double>(isHtmxRequest: True, id: "doubleValue", value: 1.7976931348623157E+308)
✅ Route_values_in_component<Double>(isHtmxRequest: True, id: "doubleValue", value: 2.7182818284590451)
✅ Route_values_in_component<Int32>(isHtmxRequest: False, id: "intValue", value: -2147483648)
✅ Route_values_in_component<Int32>(isHtmxRequest: False, id: "intValue", value: 2147483647)
✅ Route_values_in_component<Int32>(isHtmxRequest: False, id: "intValue", value: 42)
✅ Route_values_in_component<Int32>(isHtmxRequest: True, id: "intValue", value: -2147483648)
✅ Route_values_in_component<Int32>(isHtmxRequest: True, id: "intValue", value: 2147483647)
✅ Route_values_in_component<Int32>(isHtmxRequest: True, id: "intValue", value: 42)
✅ Route_values_in_component<Int64>(isHtmxRequest: False, id: "longValue", value: -9223372036854775808)
✅ Route_values_in_component<Int64>(isHtmxRequest: False, id: "longValue", value: 72036854775807)
✅ Route_values_in_component<Int64>(isHtmxRequest: False, id: "longValue", value: 9223372036854775807)
✅ Route_values_in_component<Int64>(isHtmxRequest: True, id: "longValue", value: -9223372036854775808)
✅ Route_values_in_component<Int64>(isHtmxRequest: True, id: "longValue", value: 72036854775807)
✅ Route_values_in_component<Int64>(isHtmxRequest: True, id: "longValue", value: 9223372036854775807)
✅ Route_values_in_component<Single>(isHtmxRequest: False, id: "floatValue", value: -3.40282347E+38)
✅ Route_values_in_component<Single>(isHtmxRequest: False, id: "floatValue", value: 1.40129846E-45)
✅ Route_values_in_component<Single>(isHtmxRequest: False, id: "floatValue", value: 3.40282347E+38)
✅ Route_values_in_component<Single>(isHtmxRequest: True, id: "floatValue", value: -3.40282347E+38)
✅ Route_values_in_component<Single>(isHtmxRequest: True, id: "floatValue", value: 1.40129846E-45)
✅ Route_values_in_component<Single>(isHtmxRequest: True, id: "floatValue", value: 3.40282347E+38)
✅ Route_values_in_component<String>(isHtmxRequest: False, id: "datetimeValue", value: "2024-05-03T09:07:54.5004759+00:00")
✅ Route_values_in_component<String>(isHtmxRequest: False, id: "decimalValue", value: "-79228162514264337593543950335")
✅ Route_values_in_component<String>(isHtmxRequest: False, id: "decimalValue", value: "123.45")
✅ Route_values_in_component<String>(isHtmxRequest: False, id: "decimalValue", value: "79228162514264337593543950335")
✅ Route_values_in_component<String>(isHtmxRequest: False, id: "guidValue", value: "00000000-0000-0000-0000-000000000000")
✅ Route_values_in_component<String>(isHtmxRequest: False, id: "guidValue", value: "e46fb987-6eac-4a1d-9744-ec68878a7a2e")
✅ Route_values_in_component<String>(isHtmxRequest: False, id: "stringValue", value: "foo-bar")
✅ Route_values_in_component<String>(isHtmxRequest: True, id: "datetimeValue", value: "2024-05-03T09:07:54.5004759+00:00")
✅ Route_values_in_component<String>(isHtmxRequest: True, id: "decimalValue", value: "-79228162514264337593543950335")
✅ Route_values_in_component<String>(isHtmxRequest: True, id: "decimalValue", value: "123.45")
✅ Route_values_in_component<String>(isHtmxRequest: True, id: "decimalValue", value: "79228162514264337593543950335")
✅ Route_values_in_component<String>(isHtmxRequest: True, id: "guidValue", value: "00000000-0000-0000-0000-000000000000")
✅ Route_values_in_component<String>(isHtmxRequest: True, id: "guidValue", value: "e46fb987-6eac-4a1d-9744-ec68878a7a2e")
✅ Route_values_in_component<String>(isHtmxRequest: True, id: "stringValue", value: "foo-bar")
✅ Htmxor.Http.HtmxResponseTests
✅ Location_AddsLocationHeader
✅ Location_AddsLocationWIthAjaxContextHeader
✅ Multiple_trigger_events_without_details(triggerTiming: AfterSettle, expectedHeaderKey: "HX-Trigger-After-Settle")
✅ Multiple_trigger_events_without_details(triggerTiming: AfterSwap, expectedHeaderKey: "HX-Trigger-After-Swap")
✅ Multiple_trigger_events_without_details(triggerTiming: Default, expectedHeaderKey: "HX-Trigger")
✅ PushUrl_AddsPushUrlBrowserHistoryHeader
✅ PushUrl_AddsPushUrlHeader
✅ Redirect_AddsRedirectHeader
✅ Refresh_AddsRefreshHeader
✅ ReplaceUrl_AddsReplaceUrlBrowserCUrrentUrlHeader
✅ ReplaceUrl_AddsReplaceUrlHeader
✅ Reselect_AddsReselectHeader
✅ Reswap_AddsReswapHeader
✅ Retarget_AddsRetargetHeader
✅ Same_trigger_event_twice_without_details(triggerTiming: AfterSettle, expectedHeaderKey: "HX-Trigger-After-Settle")
✅ Same_trigger_event_twice_without_details(triggerTiming: AfterSwap, expectedHeaderKey: "HX-Trigger-After-Swap")
✅ Same_trigger_event_twice_without_details(triggerTiming: Default, expectedHeaderKey: "HX-Trigger")
✅ Trigger_CanUseExistingTriggerWithMultipleTriggersWithDetail_AddsCorrectTriggerHeader(triggerTiming: AfterSettle, expectedHeaderKey: "HX-Trigger-After-Settle")
✅ Trigger_CanUseExistingTriggerWithMultipleTriggersWithDetail_AddsCorrectTriggerHeader(triggerTiming: AfterSwap, expectedHeaderKey: "HX-Trigger-After-Swap")
✅ Trigger_CanUseExistingTriggerWithMultipleTriggersWithDetail_AddsCorrectTriggerHeader(triggerTiming: Default, expectedHeaderKey: "HX-Trigger")
✅ Trigger_DefaultObject_AddsTriggerHeaderWithJsonString(triggerTiming: AfterSettle, expectedHeaderKey: "HX-Trigger-After-Settle")
✅ Trigger_DefaultObject_AddsTriggerHeaderWithJsonString(triggerTiming: AfterSwap, expectedHeaderKey: "HX-Trigger-After-Swap")
✅ Trigger_DefaultObject_AddsTriggerHeaderWithJsonString(triggerTiming: Default, expectedHeaderKey: "HX-Trigger")
✅ Trigger_without_details(triggerTiming: AfterSettle, expectedHeaderKey: "HX-Trigger-After-Settle")
✅ Trigger_without_details(triggerTiming: AfterSwap, expectedHeaderKey: "HX-Trigger-After-Swap")
✅ Trigger_without_details(triggerTiming: Default, expectedHeaderKey: "HX-Trigger")
✅ Htmxor.Http.SwapStyleBuilderTests
✅ SwapStyleBuilder_After_With250Milliseconds_AddsCorrectDelay
✅ SwapStyleBuilder_AfterSettle_AddsCorrectDelay
✅ SwapStyleBuilder_AfterSwap_AddsCorrectDelay
✅ SwapStyleBuilder_ChainedOperations_AddsCorrectModifiers
✅ SwapStyleBuilder_IgnoreTitle_AddsCorrectFlag
✅ SwapStyleBuilder_InitializeAndBuild_ReturnsCorrectValues
✅ SwapStyleBuilder_MixedShowOverrides_ReturnsCorrectValue
✅ SwapStyleBuilder_NullSwapStyle_ReturnsNullStyle
✅ SwapStyleBuilder_Scroll_AddsCorrectDirection
✅ SwapStyleBuilder_ScrollFocus_AddsCorrectFlag
✅ SwapStyleBuilder_ShowNone_ReturnsCorrectValue
✅ SwapStyleBuilder_ShowOn_AddsCorrectSelectorAndDirection
✅ SwapStyleBuilder_ShowOn_BottomDirection_AddsCorrectModifier
✅ SwapStyleBuilder_ShowOnBottom_ReturnsCorrectValue
✅ SwapStyleBuilder_ShowOnTop_ReturnsCorrectValue
✅ SwapStyleBuilder_ShowWindow_AddsCorrectWindowAndDirection
✅ SwapStyleBuilder_ShowWindow_BottomDirection_AddsCorrectModifier
✅ SwapStyleBuilder_Transition_AddsCorrectFlag
✅ Htmxor.RequestRoutingTest
✅ HxRequest
✅ NormalRequest
Loading