dotnet / dotnet/aspnetcore

Quarantine FormWithParentBindingContextTest.DataAnnotationsWorkForForms

Open
#66,693 2 comments 0 reactions 1 assignee Claimed by @oroztocil View on GitHub
area-blazor test-failure
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

## Failing Test(s)

`Microsoft.AspNetCore.Components.E2ETests.ServerRenderingTests.FormHandlingTests.FormWithParentBindingContextTest.DataAnnotationsWorkForForms`

## Error Message

```text
Assert.Single() Failure: The collection was empty
```

## Stacktrace

```text
at Microsoft.AspNetCore.Components.E2ETests.ServerRenderingTests.FormHandlingTests.FormWithParentBindingContextTest.b__9_0(ReadOnlyCollection`1 errors) in /mnt/vss/_work/1/s/src/Components/test/E2ETest/ServerRenderingTests/FormHandlingTests/FormWithParentBindingContextTest.cs:line 141
at Microsoft.AspNetCore.Components.E2ETests.ServerRenderingTests.FormHandlingTests.FormWithParentBindingContextTest.DispatchToFormCore(DispatchToForm dispatch) in /mnt/vss/_work/1/s/src/Components/test/E2ETest/ServerRenderingTests/FormHandlingTests/FormWithParentBindingContextTest.cs:line 1622
at Microsoft.AspNetCore.Components.E2ETests.ServerRenderingTests.FormHandlingTests.FormWithParentBindingContextTest.DataAnnotationsWorkForForms(Boolean suppressEnhancedNavigation) in /mnt/vss/_work/1/s/src/Components/test/E2ETest/ServerRenderingTests/FormHandlingTests/FormWithParentBindingContextTest.cs:line 146
at InvokeStub_FormWithParentBindingContextTest.DataAnnotationsWorkForForms(Object, Span`1)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
```

## Logs

Test run from ComponentsE2E-Linux-Release-xunit. Both parameterized variants (`suppressEnhancedNavigation: True` and `suppressEnhancedNavigation: False`) failed with the same error.

The test at line 141 asserts `Assert.Single(errors)` where `errors` is a collection of `ul.validation-errors li.validation-message` elements on the page. The collection was empty, meaning the validation error "Name is too long" was not rendered in time or not rendered at all.

## Build

https://dev.azure.com/dnceng-public/public/_build/results?buildId=1421908

> Generated by [Daily Test Quarantine Management](https://github.com/dotnet/aspnetcore/actions/runs/25913878755/agentic_workflow) · ● 4.5M · [◷](https://github.com/search?q=repo%3Adotnet%2Faspnetcore+is%3Aissue+%22gh-aw-workflow-call-id%3A+dotnet%2Faspnetcore%2Ftest-quarantine%22&type=issues)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.