Skip to content

Quarantine RadioButtonGetsResetAfterSubmittingEnhancedForm #60873

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

Closed
captainsafia opened this issue Mar 11, 2025 · 2 comments · Fixed by #60920
Closed

Quarantine RadioButtonGetsResetAfterSubmittingEnhancedForm #60873

captainsafia opened this issue Mar 11, 2025 · 2 comments · Fixed by #60920
Assignees
Labels
area-blazor Includes: Blazor, Razor Components test-failure

Comments

@captainsafia
Copy link
Member

captainsafia commented Mar 11, 2025

Failing Test(s)

  • Microsoft.AspNetCore.Components.E2ETests.ServerRenderingTests.FormHandlingTests.FormWithParentBindingContextTest.RadioButtonGetsResetAfterSubmittingEnhancedForm

Error Message

[xUnit.net 00:22:31.37]     Microsoft.AspNetCore.Components.E2ETests.ServerRenderingTests.FormHandlingTests.FormWithParentBindingContextTest.RadioButtonGetsResetAfterSubmittingEnhancedForm [FAIL]
  Failed Microsoft.AspNetCore.Components.E2ETests.ServerRenderingTests.FormHandlingTests.FormWithParentBindingContextTest.RadioButtonGetsResetAfterSubmittingEnhancedForm [2 s]
  Error Message:
   Assert.False() Failure
Expected: False
Actual:   True

Stacktrace

at Microsoft.AspNetCore.Components.E2ETests.ServerRenderingTests.FormHandlingTests.FormWithParentBindingContextTest.RadioButtonGetsResetAfterSubmittingEnhancedForm() in /home/vsts/work/1/s/src/Components/test/E2ETest/ServerRenderingTests/FormHandlingTests/FormWithParentBindingContextTest.cs:line 1380
at InvokeStub_FormWithParentBindingContextTest.RadioButtonGetsResetAfterSubmittingEnhancedForm(Object, Object, IntPtr*)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Logs


Build

@ghost ghost added the area-blazor Includes: Blazor, Razor Components label Mar 11, 2025
@javiercn
Copy link
Member

@ilonatommy can you take a look at this test? Seems that this has started failing possibly due to some of the changes we did here.

@javiercn javiercn added this to the .NET 10 Planning milestone Mar 12, 2025
@ilonatommy ilonatommy self-assigned this Mar 12, 2025
@ilonatommy
Copy link
Member

ilonatommy commented Mar 13, 2025

The failure is not connected with #60296 and I can reproduce it with main branch state before merging that PR (if I introduce a delay by a breakpoint on the failing line: Browser.Exists(By.Id("submit-button")).Click(); and wait a few sec, then restart). Adding a delay after Browser.Exists(By.Id("submit-button")).Click(); helps in fixing it - the UI refresh action to unselect checkbox and radio button sometimes takes more than expected. I will post a fix soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components test-failure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants