Skip to content

Quarantine CounterPageCanUseThreads #53723

@JamesNK

Description

@JamesNK

Failing Test(s)

  • Microsoft.AspNetCore.Components.E2ETest.Tests.ThreadingAppTest.CounterPageCanUseThreads

Error Message

OpenQA.Selenium.BrowserAssertFailedException : Xunit.Sdk.NotEqualException: Assert.NotEqual() Failure
Expected: Not "Current count: 0"
Actual:   "Current count: 0"

Stacktrace

Details
OpenQA.Selenium.BrowserAssertFailedException : Xunit.Sdk.NotEqualException: Assert.NotEqual() Failure
Expected: Not "Current count: 0"
Actual:   "Current count: 0"
   at Xunit.Assert.NotEqual[T](T expected, T actual, IEqualityComparer`1 comparer) in /_/src/xunit.assert/Asserts/EqualityAsserts.cs:line 302
   at Microsoft.AspNetCore.E2ETesting.WaitAssert.<>c__DisplayClass17_0.<WaitAssertCore>b__0() in /home/vsts/work/1/s/src/Shared/E2ETesting/WaitAssert.cs:line 83
   at Microsoft.AspNetCore.E2ETesting.WaitAssert.<>c__DisplayClass18_0`1.<WaitAssertCore>b__0(IWebDriver _) in /home/vsts/work/1/s/src/Shared/E2ETesting/WaitAssert.cs:line 101
Screen shot captured at '/home/vsts/work/1/s/src/Components/test/E2ETest/bin/screenshots/6454eb30aa804a4d883d47801e069b5f.png'
Encountered browser errors
[2024-01-31T05:57:24Z] [Info] http://127.0.0.1:46597/_framework/dotnet.native.9.0.0-preview.1.24080.6.f4hju7wv6l.js 7:20879 "System.Exception: We should have thrown here!"
[2024-01-31T05:57:24Z] [Info] http://127.0.0.1:46597/_framework/dotnet.native.9.0.0-preview.1.24080.6.f4hju7wv6l.js 7:20879 "   at ThreadingApp.Pages.Counter.TestThreads()"
[2024-01-31T05:57:24Z] [Severe] http://127.0.0.1:46597/_framework/blazor.webassembly.js 0:45287 "crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]\n      Unhandled exception rendering component: We should have thrown here!\nSystem.Exception: We should have thrown here!\n   at ThreadingApp.Pages.Counter.TestThreads()\n   at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)\n   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task , ComponentState )"Page content:
<head>
    <meta charset="utf-8">
    <!-- Forcing the device width here so that our automated tests work consistently on mobile browsers. -->
    <meta name="viewport" content="width=1024">
    <title>Blazor standalone</title>
    <base href="/">
</head>
<body>
    <app><!--!--><!--!--><!--!--><!--!--><div class="sidebar"><!--!--><div class="top-row pl-4 navbar navbar-dark"><!--!--><a class="navbar-brand" href="">Blazor app</a>
    <button class="navbar-toggler"><!--!--><span class="navbar-toggler-icon"></span></button></div><!--!-->

<div><ul class="nav flex-column"><li class="nav-item px-3"><!--!--><a href="" class="nav-link"><!--!--><span class="bi bi-house-door-fill" aria-hidden="true"></span> Home
            </a></li><!--!-->
        <li class="nav-item px-3"><!--!--><a href="counter" class="nav-link active" aria-current="page"><!--!--><span class="bi bi-plus-square-fill" aria-hidden="true"></span> Counter
            </a></li><!--!-->
        <li class="nav-item px-3"><!--!--><a href="fetchdata" class="nav-link"><!--!--><span class="bi bi-list-nested" aria-hidden="true"></span> Fetch data
            </a></li></ul></div></div><!--!-->

<div class="main"><!--!--><div class="top-row px-4"><a href="http://blazor.net" target="_blank" class="ml-md-auto">About</a></div>

    <div class="content px-4"><!--!--><!--!--><h1 tabindex="-1">Counter</h1>

<p>Current count: 0</p><!--!-->

<button class="btn btn-primary">Click me</button><!--!-->
<button class="btn btn-primary" id="TestThreads">Test threads</button></div></div><!--!-->
        <!--!--></app>

    <div id="blazor-error-ui" style="display: block;">
        An unhandled exception has occurred. See browser dev tools for details.
        <a href="" class="reload">Reload</a>
        <a class="dismiss">\ud83d\uddd9</a>
    </div>

    <script src="_framework/blazor.webassembly.js" autostart="false"></script>
    <script>
        (function(){
            Blazor.start().then(function () {
                window['__aspnetcore__testing__blazor_wasm__started__'] = true;
            });
        })();
    </script>


</body>

---- Assert.NotEqual() Failure
Expected: Not "Current count: 0"
Actual:   "Current count: 0"

Logs

Standard_Console_Output.log

Build

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions