Skip to content

Flaky Test: ServerFormsTest.InputDateInteractsWithEditContext_NonNullableDateTime #27398

Closed
@BrennanConroy

Description

@BrennanConroy

Moving issue https://github.com/dotnet/aspnetcore-internal/issues/3616 to here

Microsoft.AspNetCore.Components.E2ETest.Tests.FormsTest.InputDateInteractsWithEditContext_NonNullableDateTime [FAIL]
      OpenQA.Selenium.BrowserAssertFailedException : Xunit.Sdk.NotEmptyException: Assert.NotEmpty() Failure
         at Xunit.Assert.NotEmpty(IEnumerable collection) in C:\Dev\xunit\xunit\src\xunit.assert\Asserts\CollectionAsserts.cs:line 331
         at Microsoft.AspNetCore.E2ETesting.WaitAssert.<>c__DisplayClass15_0.<Exists>b__0() in /_/src/Shared/E2ETesting/WaitAssert.cs:line 72
         at Microsoft.AspNetCore.E2ETesting.WaitAssert.<>c__DisplayClass18_0`1.<WaitAssertCore>b__0(IWebDriver _) in /_/src/Shared/E2ETesting/WaitAssert.cs:line 109
      Screen shot captured at 'F:\workspace\_work\1\s\artifacts\TestResults\Release\Microsoft.AspNetCore.Components.E2ETests\4e589aba92324fcbb849a0f5c924816e.png'
      Encountered browser errors
      [2020-10-27T20:21:55Z] [Debug] http://127.0.0.1:52201/subdir/_framework/dotnet.6.0.0-alpha.1.20513.9.js 0:135668 "mono_wasm_runtime_ready" "fe00e07a-5519-4dfe-b35a-f867dbaf2e28"Page content:
      <head>
          <meta charset="utf-8">
          <title>Basic test app</title>
          <base href="/https/github.com/subdir/">
          <link href="style.css" rel="stylesheet">
          <link rel="icon" href="data:,">
      
          <!-- Used by ExternalContentPackage -->
          <link href="_content/TestContentPackage/styles.css" rel="stylesheet">
      
          <!-- App bundle that contains a reference to the scoped css bundle created by TestContentPackage -->
          <link href="BasicTestApp.styles.css" rel="stylesheet">
      </head>
      
      <body>
          <root><div id="test-selector"><!--!-->
          Select test:
          <select id="test-selector-select"><option value="none">Choose...</option><!--!-->
              <option value="BasicTestApp.AddRemoveChildComponents">Add/remove child components</option><!--!-->
              <option value="BasicTestApp.AfterRenderInteropComponent">After-render interop component</option><!--!-->
              <option value="BasicTestApp.AsyncEventHandlerComponent">Async event handlers</option><!--!-->
              <option value="BasicTestApp.AuthTest.AuthRouter">Auth cases</option><!--!-->
              <option value="BasicTestApp.AuthTest.CascadingAuthenticationStateParent">Cascading authentication state</option><!--!-->
              <option value="BasicTestApp.BindCasesComponent">bind cases</option><!--!-->
              <option value="BasicTestApp.CascadingValueTest.CascadingValueSupplier">Cascading values</option><!--!-->
              <option value="BasicTestApp.ComponentRefComponent">Component ref component</option><!--!-->
              <option value="BasicTestApp.ConcurrentRenderParent">Concurrent rendering</option><!--!-->
              <option value="BasicTestApp.ConfigurationComponent">Configuration</option><!--!-->
              <option value="BasicTestApp.ContentEditable">Content-editable</option><!--!-->
              <option value="BasicTestApp.CounterComponent">Counter</option><!--!-->
              <option value="BasicTestApp.CounterComponentUsingChild">Counter using child component</option><!--!-->
              <option value="BasicTestApp.CounterComponentWrapper">Counter wrapped in parent</option><!--!-->
              <option value="BasicTestApp.CulturePicker">Culture Picker</option><!--!-->
              <option value="BasicTestApp.DataDashComponent">data-* attribute rendering</option><!--!-->
              <option value="BasicTestApp.DispatchingComponent">Dispatching to sync context</option><!--!-->
              <option value="BasicTestApp.DuplicateAttributesComponent">Duplicate attributes</option><!--!-->
              <option value="BasicTestApp.ElementFocusComponent">Element focus component</option><!--!-->
              <option value="BasicTestApp.ElementRefComponent">Element ref component</option><!--!-->
              <option value="BasicTestApp.ErrorComponent">Error throwing</option><!--!-->
              <option value="BasicTestApp.EventBubblingComponent">Event bubbling</option><!--!-->
              <option value="BasicTestApp.EventCallbackTest.EventCallbackCases">EventCallback</option><!--!-->
              <option value="BasicTestApp.EventCasesComponent">Event cases</option><!--!-->
              <option value="BasicTestApp.EventDisablingComponent">Event disabling</option><!--!-->
              <option value="BasicTestApp.EventDuringBatchRendering">Event during batch rendering</option><!--!-->
              <option value="BasicTestApp.EventPreventDefaultComponent">Event preventDefault</option><!--!-->
              <option value="BasicTestApp.ExternalContentPackage">External content package</option><!--!-->
              <option value="BasicTestApp.FocusEventComponent">Focus events</option><!--!-->
              <option value="BasicTestApp.FormsTest.NotifyPropertyChangedValidationComponent">INotifyPropertyChanged validation</option><!--!-->
              <option value="BasicTestApp.FormsTest.SimpleValidationComponent">Simple validation</option><!--!-->
              <option value="BasicTestApp.FormsTest.SimpleValidationComponentUsingExperimentalValidator">Simple validation using experimental validator</option><!--!-->
              <option value="BasicTestApp.FormsTest.TypicalValidationComponent">Typical validation</option><!--!-->
              <option value="BasicTestApp.FormsTest.TypicalValidationComponentUsingExperimentalValidator">Typical validation using experimental validator</option><!--!-->
              <option value="BasicTestApp.FormsTest.InputFileComponent">Input file</option><!--!-->
              <option value="BasicTestApp.NavigateOnSubmit">Navigate to submit</option><!--!-->
              <option value="BasicTestApp.GlobalizationBindCases">Globalization Bind Cases</option><!--!-->
              <option value="BasicTestApp.GracefulTermination">Graceful Termination</option><!--!-->
              <option value="BasicTestApp.HierarchicalImportsTest.Subdir.ComponentUsingImports">Imports statement</option><!--!-->
              <option value="BasicTestApp.HtmlBlockChildContent">ChildContent HTML Block</option><!--!-->
              <option value="BasicTestApp.HtmlEncodedChildContent">ChildContent HTML Encoded Block</option><!--!-->
              <option value="BasicTestApp.HtmlMixedChildContent">ChildContent Mixed Block</option><!--!-->
              <option value="BasicTestApp.HttpClientTest.BinaryHttpRequestsComponent">Binary HttpClient tester</option><!--!-->
              <option value="BasicTestApp.HttpClientTest.CookieCounterComponent">HttpClient cookies</option><!--!-->
              <option value="BasicTestApp.HttpClientTest.HttpRequestsComponent">HttpClient tester</option><!--!-->
              <option value="BasicTestApp.InputEventComponent">Input events</option><!--!-->
              <option value="BasicTestApp.InteropComponent">Interop component</option><!--!-->
              <option value="BasicTestApp.InteropOnInitializationComponent">Interop on initialization</option><!--!-->
              <option value="BasicTestApp.JsonSerializationCases">JSON serialization</option><!--!-->
              <option value="BasicTestApp.KeyCasesComponent">Key cases</option><!--!-->
              <option value="BasicTestApp.KeyPressEventComponent">Key press event</option><!--!-->
              <option value="BasicTestApp.LaggyTypingComponent">Laggy typing</option><!--!-->
              <option value="BasicTestApp.LimitCounterComponent">Limit counter component</option><!--!-->
              <option value="BasicTestApp.LocalizedText">Localized Text</option><!--!-->
              <option value="BasicTestApp.LogicalElementInsertionCases">Logical element insertion cases</option><!--!-->
              <option value="BasicTestApp.LoggingComponent">Logging</option><!--!-->
              <option value="BasicTestApp.LongRunningInterop">Long running interop</option><!--!-->
              <option value="BasicTestApp.MarkupBlockComponent">Markup blocks</option><!--!-->
              <option value="BasicTestApp.MouseEventComponent">Mouse events</option><!--!-->
              <option value="BasicTestApp.MovingCheckboxesComponent">Moving checkboxes diff case</option><!--!-->
              <option value="BasicTestApp.MultipleChildContent">Multiple child content</option><!--!-->
              <option value="BasicTestApp.NavigationFailureComponent">Navigation failure</option><!--!-->
              <option value="BasicTestApp.ParentChildComponent">Parent component with child</option><!--!-->
              <option value="BasicTestApp.PropertiesChangedHandlerParent">Parent component that changes parameters on child</option><!--!-->
              <option value="Components.TestServer.ProtectedBrowserStorageUsageComponent">Protected browser storage usage</option><!--!-->
              <option value="Components.TestServer.ProtectedBrowserStorageInjectionComponent">Protected browser storage injection</option><!--!-->
              <option value="BasicTestApp.RazorTemplates">Razor Templates</option><!--!-->
              <option value="BasicTestApp.Reconnection.ReconnectionComponent">Reconnection server-side blazor</option><!--!-->
              <option value="BasicTestApp.RedTextComponent">Red text</option><!--!-->
              <option value="BasicTestApp.ReliabilityComponent">Server reliability component</option><!--!-->
              <option value="BasicTestApp.RenderFragmentToggler">Render fragment renderer</option><!--!-->
              <option value="BasicTestApp.RenderAttributesBeforeConnectedCallback">Render attributes before ConnectedCallback</option><!--!-->
              <option value="BasicTestApp.ReorderingFocusComponent">Reordering focus retention</option><!--!-->
              <option value="BasicTestApp.RouterTest.NavigationManagerComponent">NavigationManager Test</option><!--!-->
              <option value="BasicTestApp.RouterTest.TestRouter">Router</option><!--!-->
              <option value="BasicTestApp.RouterTest.TestRouterWithOnNavigate">Router with OnNavigate</option><!--!-->
              <option value="BasicTestApp.RouterTest.TestRouterWithLazyAssembly">Router with dynamic assembly</option><!--!-->
              <option value="BasicTestApp.RouterTest.TestRouterWithAdditionalAssembly">Router with additional assembly</option><!--!-->
              <option value="BasicTestApp.SelectVariantsComponent">Select with component options</option><!--!-->
              <option value="BasicTestApp.SignalRClientComponent">SignalR client</option><!--!-->
              <option value="BasicTestApp.StringComparisonComponent">StringComparison</option><!--!-->
              <option value="BasicTestApp.SvgComponent">SVG</option><!--!-->
              <option value="BasicTestApp.SvgWithChildComponent">SVG with child component</option><!--!-->
              <option value="BasicTestApp.TextOnlyComponent">Plain text</option><!--!-->
              <option value="BasicTestApp.ToggleEventComponent">Toggle Event</option><!--!-->
              <option value="BasicTestApp.TouchEventComponent">Touch events</option><!--!-->
              <option value="BasicTestApp.VirtualizationComponent">Virtualization</option><!--!-->
              <option value="BasicTestApp.VirtualizationDataChanges">Virtualization data changes</option></select><!--!-->
      
          <span id="runtime-info"><code><tt>.NET 6.0.0-alpha.1.20525.3</tt></code></span><!--!--><hr></div><!--!-->
      
      <app></app></root>
      
          <!-- Explicit display:none required so StartupErrorNotificationTest can observe it change -->
          <div id="blazor-error-ui" style="display: none;">
              An unhandled error has occurred.
              <a href="" class="reload">Reload</a>
              <a class="dismiss" style="cursor: pointer;">??</a>
          </div>
      
          <!-- Used for specific test cases -->
          <script src="js/jsinteroptests.js"></script>
          <script src="js/renderattributestest.js"></script>
          <script src="js/webComponentPerformingJsInterop.js"></script>
      
          <script>
              // Used by ElementRefComponent
              function setElementValue(element, newValue) {
                  element.value = newValue;
                  return element.value;
              }
      
              function navigationManagerNavigate() {
                  Blazor.navigateTo('/subdir/some-path');
              }
      
              function getCurrentUrl() {
                  return location.href;
              }
          </script>
          <script src="_framework/blazor.webassembly.js"></script>
      
          <!-- Used by ExternalContentPackage -->
          <script src="_content/TestContentPackage/prompt.js"></script>
      
      
      
      <script type="text/javascript">var Module; window.__wasmmodulecallback__(); delete window.__wasmmodulecallback__;</script><script src="_framework/dotnet.6.0.0-alpha.1.20513.9.js" defer="" crossorigin="anonymous"></script></body>
      
      ---- Assert.NotEmpty() Failure
      Stack Trace:
        /_/src/Shared/E2ETesting/WaitAssert.cs(129,0): at Microsoft.AspNetCore.E2ETesting.WaitAssert.WaitAssertCore[TResult](IWebDriver driver, Func`1 assertion, TimeSpan timeout)
        /_/src/Shared/E2ETesting/WaitAssert.cs(67,0): at Microsoft.AspNetCore.E2ETesting.WaitAssert.Exists(IWebDriver driver, By finder, TimeSpan timeout)
        /_/src/Components/test/E2ETest/Infrastructure/WebDriverExtensions/BasicTestAppWebDriverExtensions.cs(24,0): at Microsoft.AspNetCore.Components.E2ETest.BasicTestAppWebDriverExtensions.WaitUntilTestSelectorReady(IWebDriver browser)
        /_/src/Components/test/E2ETest/Infrastructure/WebDriverExtensions/BasicTestAppWebDriverExtensions.cs(18,0): at Microsoft.AspNetCore.Components.E2ETest.BasicTestAppWebDriverExtensions.MountTestComponent[TComponent](IWebDriver browser)
        /_/src/Components/test/E2ETest/Tests/FormsTest.cs(42,0): at Microsoft.AspNetCore.Components.E2ETest.Tests.FormsTest.MountTypicalValidationComponent()
        /_/src/Components/test/E2ETest/Tests/FormsTest.cs(201,0): at Microsoft.AspNetCore.Components.E2ETest.Tests.FormsTest.InputDateInteractsWithEditContext_NonNullableDateTime()
        ----- Inner Stack Trace -----
        /_/src/Shared/E2ETesting/WaitAssert.cs(72,0): at Microsoft.AspNetCore.E2ETesting.WaitAssert.<>c__DisplayClass15_0.<Exists>b__0()
        /_/src/Shared/E2ETesting/WaitAssert.cs(109,0): at Microsoft.AspNetCore.E2ETesting.WaitAssert.<>c__DisplayClass18_0`1.<WaitAssertCore>b__0(IWebDriver _)

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedarea-blazorIncludes: Blazor, Razor Componentstest-failure

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions