Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public class BlazorWasmTestAppFixture<TProgram> : WebHostServerFixture
public string PathBase { get; set; }
public string ContentRoot { get; private set; }

public bool RequiresMultithreadingHeaders { get; set; }

protected override IHost CreateWebHost()
{
if (TestTrimmedOrMultithreadingApps)
Expand Down Expand Up @@ -61,7 +63,7 @@ protected override IHost CreateWebHost()
args.Add(Environment);
}

if (WebAssemblyTestHelper.MultithreadingIsEnabled())
if (RequiresMultithreadingHeaders || WebAssemblyTestHelper.MultithreadingIsEnabled())
{
args.Add("--apply-cop-headers");
}
Expand Down
5 changes: 5 additions & 0 deletions src/Components/test/E2ETest/Tests/ThreadingAppTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public ThreadingAppTest(
ITestOutputHelper output)
: base(browserFixture, serverFixture, output)
{
serverFixture.RequiresMultithreadingHeaders = true;
}

protected override void InitializeAsyncCore()
Expand All @@ -28,12 +29,14 @@ protected override void InitializeAsyncCore()
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/54761")]
public void HasTitle()
{
Assert.Equal("Blazor standalone", Browser.Title);
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/54761")]
public void HasHeading()
{
Assert.Equal("Hello, world!", Browser.Exists(By.TagName("h1")).Text);
Expand Down Expand Up @@ -85,6 +88,7 @@ public void CounterPageCanUseThreads()
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/54761")]
public void HasFetchDataPage()
{
// Navigate to "Fetch data"
Expand All @@ -106,6 +110,7 @@ public void HasFetchDataPage()
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/54761")]
public void IsStarted()
{
// Read from property
Expand Down
Loading