From c60a956cad003cbcf7e85046b9521613bd29c7c9 Mon Sep 17 00:00:00 2001 From: Ivan Lieckens Date: Mon, 5 Aug 2024 10:00:54 +0200 Subject: [PATCH] Fixed Integration Test for Component and Route property binding --- .../Fixtures/Binding/ComplexModelBindingFixture.cs | 4 ++-- .../Components/SitecoreComponent/ComplexComponent.cshtml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Sitecore.AspNetCore.SDK.RenderingEngine.Integration.Tests/Fixtures/Binding/ComplexModelBindingFixture.cs b/tests/Sitecore.AspNetCore.SDK.RenderingEngine.Integration.Tests/Fixtures/Binding/ComplexModelBindingFixture.cs index b7728c9..4e84b35 100644 --- a/tests/Sitecore.AspNetCore.SDK.RenderingEngine.Integration.Tests/Fixtures/Binding/ComplexModelBindingFixture.cs +++ b/tests/Sitecore.AspNetCore.SDK.RenderingEngine.Integration.Tests/Fixtures/Binding/ComplexModelBindingFixture.cs @@ -76,10 +76,10 @@ public async Task SitecoreLayoutModelBinders_BindDataCorrectly() .Should().Be(TestConstants.SearchKeywords); sectionNode.ChildNodes.First(n => n.Id.Equals("componentProperty", StringComparison.OrdinalIgnoreCase)).InnerText - .Should().BeEmpty("Complex-Component"); + .Should().Be("Complex-Component"); sectionNode.ChildNodes.First(n => n.Id.Equals("routeProperty", StringComparison.OrdinalIgnoreCase)).InnerText. - Should().BeEmpty("styleguide"); + Should().Be("styleguide"); sectionNode.ChildNodes.First(n => n.Id.Equals("fieldContent", StringComparison.OrdinalIgnoreCase)).InnerHtml. Should().Be(TestConstants.RichTextFieldValue1); diff --git a/tests/Sitecore.AspNetCore.SDK.RenderingEngine.Integration.Tests/Views/Shared/Components/SitecoreComponent/ComplexComponent.cshtml b/tests/Sitecore.AspNetCore.SDK.RenderingEngine.Integration.Tests/Views/Shared/Components/SitecoreComponent/ComplexComponent.cshtml index e596f26..347a8a5 100644 --- a/tests/Sitecore.AspNetCore.SDK.RenderingEngine.Integration.Tests/Views/Shared/Components/SitecoreComponent/ComplexComponent.cshtml +++ b/tests/Sitecore.AspNetCore.SDK.RenderingEngine.Integration.Tests/Views/Shared/Components/SitecoreComponent/ComplexComponent.cshtml @@ -3,8 +3,8 @@

-

-

+

@Model.ComponentName

+

@Model.RouteName