Sitecore / ASP.NET-Core-SDK

The official open source ASP.NET Core SDK for Sitecore DXP and XM Cloud.
https://sitecore.github.io/ASP.NET-Core-SDK/
Apache License 2.0
8 stars 2 forks source link

Fixed Integration Test for Component and Route property binding #5

Closed sc-ivanlieckens closed 1 month ago

sc-ivanlieckens commented 1 month ago

Description / Motivation

The integration test for Component and Route property binding mistakenly had BeEmpty() instead of Be(). This incorrectly made the integration test pass since the Razor View was invalid. It was using the asp-for TagHelper attribute to attempt to render the values. However the Model's properties are of type string? which do not have an OOTB TagHelper for the h3 or p tags. With the view fixed this test now properly passes and behaves as expected.

Testing

Terms