- #5209 - update affected `HtmlHelperValiationSummaryTest` and functional tests - add `ValidationSummaryTagHelperTest` tests to cover related scenarios ##### Behaviour changes when no errors exist for the model: ###### Tag helper ``` html <div asp-validation-summary="ModelOnly" class="order"><h3>Oopsie<h3></div> ``` previously generated ``` html <div class="order validation-summary-errors"><h3>Oopsie</h3><ul><li style="display:none"></li> </ul></div> ``` and now generates ``` html <div class="order"><h3>Oopsie</h3></div> ``` ###### HTML helper ``` c# @Html.ValidationSummary(excludePropertyErrors: true, message: "Oopsie") ``` previously generated ``` html <div class=\"validation-summary-errors\"><span>Oopsie</span> <ul><li style=\"display:none\"></li> </ul></div> ``` and now generates nothing (`@HtmlString.Empty`). |
||
|---|---|---|
| .. | ||
| ApiExplorerWebSite | ||
| ApplicationModelWebSite | ||
| BasicWebSite | ||
| ControllersFromServicesClassLibrary | ||
| ControllersFromServicesWebSite | ||
| CorsWebSite | ||
| ErrorPageMiddlewareWebSite | ||
| FilesWebSite | ||
| FiltersWebSite | ||
| FormatterWebSite | ||
| HtmlGenerationWebSite | ||
| Microsoft.AspNetCore.Mvc.TestConfiguration | ||
| RazorPageExecutionInstrumentationWebSite | ||
| RazorWebSite | ||
| RoutingWebSite | ||
| SimpleWebSite | ||
| TagHelpersWebSite | ||
| UserClassLibrary | ||
| VersioningWebSite | ||
| WebApiCompatShimWebSite | ||
| XmlFormattersWebSite | ||