Skip to content

Commit 98f9454

Browse files
authored
Re-enable Blazor AoT tests (#31941)
1 parent 67cc58c commit 98f9454

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.AoT.Tests/WasmAoTPublishIntegrationTest.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ public class WasmAoTPublishIntegrationTest : WasmPublishIntegrationTestBase
2222
{
2323
public WasmAoTPublishIntegrationTest(ITestOutputHelper log) : base(log) { }
2424

25-
[Fact(Skip = "https://github.com/dotnet/sdk/issues/31491")]
25+
[Fact]
2626
public void AoT_Publish_InRelease_Works()
2727
{
2828
// Arrange
2929
var testAppName = "BlazorWasmWithLibrary";
30-
var testInstance = CreateAspNetSdkTestAssetWithAot(testAppName, new [] { "blazorwasm" });
30+
var testInstance = CreateAspNetSdkTestAssetWithAot(testAppName, new[] { "blazorwasm" });
3131
File.WriteAllText(Path.Combine(testInstance.TestRoot, "blazorwasm", "App.razor.css"), "h1 { font-size: 16px; }");
3232

3333
var publishCommand = new PublishCommand(testInstance, "blazorwasm");
@@ -58,12 +58,12 @@ public void AoT_Publish_InRelease_Works()
5858
new FileInfo(Path.Combine(blazorPublishDirectory, "css", "app.css")).Should().Contain(".publish");
5959
}
6060

61-
[Fact(Skip = "https://github.com/dotnet/sdk/issues/31491")]
61+
[Fact]
6262
public void AoT_Publish_WithExistingWebConfig_Works()
6363
{
6464
// Arrange
6565
var testAppName = "BlazorWasmWithLibrary";
66-
var testInstance = CreateAspNetSdkTestAssetWithAot(testAppName, new [] { "blazorwasm" });
66+
var testInstance = CreateAspNetSdkTestAssetWithAot(testAppName, new[] { "blazorwasm" });
6767

6868
var webConfigContents = "test webconfig contents";
6969
File.WriteAllText(Path.Combine(testInstance.TestRoot, "blazorwasm", "web.config"), webConfigContents);
@@ -80,12 +80,12 @@ public void AoT_Publish_WithExistingWebConfig_Works()
8080
webConfig.Should().Contain(webConfigContents);
8181
}
8282

83-
[Fact(Skip = "https://github.com/dotnet/sdk/issues/31491")]
83+
[Fact]
8484
public void AoT_Publish_HostedAppWithScopedCss_VisualStudio()
8585
{
8686
// Simulates publishing the same way VS does by setting BuildProjectReferences=false.
8787
var testAppName = "BlazorHosted";
88-
var testInstance = CreateAspNetSdkTestAssetWithAot(testAppName, new [] { "blazorwasm", "blazorhosted" });
88+
var testInstance = CreateAspNetSdkTestAssetWithAot(testAppName, new[] { "blazorwasm", "blazorhosted" });
8989
File.WriteAllText(Path.Combine(testInstance.TestRoot, "blazorwasm", "App.razor.css"), "h1 { font-size: 16px; }");
9090

9191
// VS builds projects individually and then a publish with BuildDependencies=false, but building the main project is a close enough approximation for this test.

0 commit comments

Comments
 (0)