dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.19k stars 9.93k forks source link

Quarantine FormWithParentBindingContextTest.CanBindToFormWithFiles #54447

Open amcasey opened 6 months ago

amcasey commented 6 months ago

Failing Test(s)

Error Message

Assert.Throws() Failure
Expected: typeof(OpenQA.Selenium.StaleElementReferenceException)
Actual:   typeof(OpenQA.Selenium.WebDriverException): unknown error: unhandled inspector error: {"code":-32000,"message":"Node with given id does not belong to the document"}
(Session info: chrome=122.0.6261.94)
---- OpenQA.Selenium.WebDriverException : unknown error: unhandled inspector error: {"code":-32000,"message":"Node with given id does not belong to the document"}
(Session info: chrome=122.0.6261.94)

Stacktrace

```text at OpenQA.Selenium.WebDriver.UnpackAndThrowOnError(Response errorResponse, String commandToExecute) at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) at OpenQA.Selenium.WebElement.GetAttribute(String attributeName) at Microsoft.AspNetCore.Components.E2ETests.ServerRenderingTests.FormHandlingTests.FormWithParentBindingContextTest.<>c__DisplayClass73_0.b__2() in /home/vsts/work/1/s/src/Components/test/E2ETest/ServerRenderingTests/FormHandlingTests/FormWithParentBindingContextTest.cs:line 1595 ----- Inner Stack Trace ----- at OpenQA.Selenium.WebDriver.UnpackAndThrowOnError(Response errorResponse, String commandToExecute) at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) at OpenQA.Selenium.WebElement.GetAttribute(String attributeName) at Microsoft.AspNetCore.Components.E2ETests.ServerRenderingTests.FormHandlingTests.FormWithParentBindingContextTest.<>c__DisplayClass73_0.b__2() in /home/vsts/work/1/s/src/Components/test/E2ETest/ServerRenderingTests/FormHandlingTests/FormWithParentBindingContextTest.cs:line 1595 ```

Logs

```text /home/vsts/work/1/s/src/Components/test/E2ETest/ServerRenderingTests/FormHandlingTests/FormWithParentBindingContextTest.cs(1595): error VSTEST1: (Microsoft.AspNetCore.Components.E2ETests.ServerRenderingTests.FormHandlingTests.FormWithParentBindingContextTest.CanBindToFormWithFiles) Microsoft.AspNetCore.Components.E2ETests.ServerRenderingTests.FormHandlingTests.FormWithParentBindingContextTest.<>c__DisplayClass73_0.b__2() Assert.Throws() Failure Expected: typeof(OpenQA.Selenium.StaleElementReferenceException) Actual: typeof(OpenQA.Selenium.WebDriverException): unknown error: unhandled inspector error: {"code":-32000,"message":"Node with given id does not belong to the document"} (Session info: chrome=122.0.6261.94) ---- OpenQA.Selenium.WebDriverException : unknown error: unhandled inspector error: {"code":-32000,"message":"Node with given id does not belong to the document"} (Session info: chrome=122.0.6261.94) [/home/vsts/work/1/s/src/Components/test/E2ETest/Microsoft.AspNetCore.Components.E2ETests.csproj] ```

Build

https://dev.azure.com/dnceng-public/public/_build/results?buildId=595165&view=results

Also affected https://github.com/dotnet/aspnetcore/pull/54411 Probably related: https://github.com/dotnet/aspnetcore/issues/49975 Possible fix approach: https://github.com/dotnet/aspnetcore/pull/54340

MackinnonBuck commented 6 months ago

The root cause of this problem may affect any test that relies on catching StaleElementReferenceException as a way of detecting when an element was removed from the page. I've put this issue in the preview 7 milestone, but if we see similar test failures sooner, we should consider giving this a higher priority.

halter73 commented 5 months ago

While this might theoretically affect other tests, I haven't seen it myself. And I just saw this test fail again at https://dev.azure.com/dnceng-public/public/_build/results?buildId=608920&view=ms.vss-test-web.build-test-results-tab.