-
Notifications
You must be signed in to change notification settings - Fork 9
Changed text based TagHelpers to rendering Chromes with internal span not div #40
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,4 @@ | ||
| using System.Diagnostics.CodeAnalysis; | ||
|
robearlam marked this conversation as resolved.
|
||
| using System.Globalization; | ||
| using AutoFixture; | ||
| using AutoFixture; | ||
| using AutoFixture.Idioms; | ||
| using FluentAssertions; | ||
| using Microsoft.AspNetCore.Mvc.ModelBinding; | ||
|
|
@@ -14,6 +12,9 @@ | |
| using Sitecore.AspNetCore.SDK.LayoutService.Client.Response.Model.Fields; | ||
| using Sitecore.AspNetCore.SDK.RenderingEngine.Rendering; | ||
| using Sitecore.AspNetCore.SDK.RenderingEngine.TagHelpers.Fields; | ||
| using System.Diagnostics.CodeAnalysis; | ||
|
Check warning on line 15 in tests/Sitecore.AspNetCore.SDK.RenderingEngine.Tests/TagHelpers/Fields/RichTextTagHelperFixture.cs
|
||
| using System.Globalization; | ||
|
Check warning on line 16 in tests/Sitecore.AspNetCore.SDK.RenderingEngine.Tests/TagHelpers/Fields/RichTextTagHelperFixture.cs
|
||
| using System.Text.Encodings.Web; | ||
|
Check warning on line 17 in tests/Sitecore.AspNetCore.SDK.RenderingEngine.Tests/TagHelpers/Fields/RichTextTagHelperFixture.cs
|
||
| using Xunit; | ||
|
|
||
| namespace Sitecore.AspNetCore.SDK.RenderingEngine.Tests.TagHelpers.Fields; | ||
|
|
@@ -733,6 +734,7 @@ | |
| // Assert | ||
| chromeRenderer.Received().Render(openingChrome); | ||
| chromeRenderer.Received().Render(closingChrome); | ||
| tagHelperOutput.Content.GetContent().Should().Be($"{chromeRenderer.Render(openingChrome)}<span>{TestHtml}</span>{chromeRenderer.Render(closingChrome)}"); | ||
| } | ||
|
|
||
| private static ModelExpression GetModelExpression(Field model) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.