Tweaks to swap style builder and related types #104
GitHub Actions / test-results
succeeded
May 1, 2024 in 1s
82 passed, 0 failed and 0 skipped
✅ /home/runner/work/Htmxor/Htmxor/TestResults/_fv-az840-177_2024-05-01_21_25_23.trx
82 tests were completed in 7s with 82 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Htmxor.Builder.HtmxorComponentEndpointDataSourceTest | 1✅ | 23ms | ||
Htmxor.Builder.HtmxorComponentEndpointMatcherPolicyTest | 22✅ | 16ms | ||
Htmxor.Configuration.HtmxHeadOutletTest | 2✅ | 569ms | ||
Htmxor.DemoTestCases.BulkUpdate1Test | 1✅ | 760ms | ||
Htmxor.DemoTestCases.ClickToEdit1Test | 5✅ | 4s | ||
Htmxor.DemoTestCases.DeleteRowTest | 1✅ | 559ms | ||
Htmxor.DemoTestCases.HxValsTest | 1✅ | 565ms | ||
Htmxor.E2E.ClickToEditE2ETests | 1✅ | 329ms | ||
Htmxor.E2E.EventHandlerE2ETest | 1✅ | 298ms | ||
Htmxor.EventHandlerTest | 1✅ | 616ms | ||
Htmxor.Http.HtmxResponseTests | 26✅ | 251ms | ||
Htmxor.Http.SwapStyleBuilderTests | 18✅ | 78ms | ||
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: HxRouteAttribute { CurrentURL = "/foo", Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Current-URL", "/foo")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HxRouteAttribute { CurrentURL = "/foo", Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Current-URL", "/FOO")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HxRouteAttribute { CurrentURL = "/FOO", Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Current-URL", "/foo")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = "#foo", Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Target", "#foo")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = "#foo", Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Target", "#FOO")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = ["#foo", "#bar"], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Target", "#BAR")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = ["#foo", "#bar"], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Target", "#foo")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Trigger-Name", "#foo")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Trigger-Name", "#FOO")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Trigger", "#foo")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Trigger", "#FOO")])
✅ ApplyAsync_HxRequest_HxEndpoint_none_matching(hxRouteAttribute: HxRouteAttribute { CurrentURL = "/foo", Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Current-URL", "/bar")])
✅ ApplyAsync_HxRequest_HxEndpoint_none_matching(hxRouteAttribute: HxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = "#foo", Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Target", "#bar")])
✅ ApplyAsync_HxRequest_HxEndpoint_none_matching(hxRouteAttribute: HxRouteAttribute { 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: HxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Trigger-Name", "#bar")])
✅ ApplyAsync_HxRequest_HxEndpoint_none_matching(hxRouteAttribute: HxRouteAttribute { 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.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