Skip to content

Commit

Permalink
Quarantine various blazor template tests (#30883)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotalik committed Mar 12, 2021
1 parent 1e19c6f commit fc1257a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ private async Task TestBasicNavigation(IPage page)
[InlineData("SingleOrg", null)]
[InlineData("SingleOrg", new string[] { "--called-api-url \"https://graph.microsoft.com\"", "--called-api-scopes user.readwrite" })]
[InlineData("SingleOrg", new string[] { "--calls-graph" })]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/30882")]
public async Task BlazorServerTemplat_IdentityWeb_BuildAndPublish(string auth, string[] args)
{
Project = await ProjectFactory.GetOrCreateProject("blazorserveridweb" + Guid.NewGuid().ToString().Substring(0, 10).ToLowerInvariant(), Output);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public BlazorWasmTemplateTest(ProjectFactoryFixture projectFactory, PlaywrightFi

[Theory]
[InlineData(BrowserKind.Chromium)]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/30882")]
public async Task BlazorWasmStandaloneTemplate_Works(BrowserKind browserKind)
{
// Additional arguments are needed. See: https://github.com/dotnet/aspnetcore/issues/24278
Expand Down Expand Up @@ -90,12 +91,13 @@ private async Task<IPage> NavigateToPage(IBrowserContext browser, string listeni

[Theory]
[InlineData(BrowserKind.Chromium)]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/30882")]
public async Task BlazorWasmHostedTemplate_Works(BrowserKind browserKind)
{
// Additional arguments are needed. See: https://github.com/dotnet/aspnetcore/issues/24278
Environment.SetEnvironmentVariable("EnableDefaultScopedCssItems", "true");

var project = await ProjectFactory.GetOrCreateProject("blazorhosted" + browserKind, Output);
var project = await ProjectFactory.GetOrCreateProject("blazorhosted" + browserKind, Output);
var createResult = await project.RunDotNetNewAsync("blazorwasm", args: new[] { "--hosted" });
Assert.True(0 == createResult.ExitCode, ErrorMessages.GetFailedProcessMessage("create/restore", project, createResult));

Expand Down Expand Up @@ -149,6 +151,7 @@ private static async Task AssertCompressionFormat(AspNetProcess aspNetProcess, s

[Theory]
[InlineData(BrowserKind.Chromium)]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/30882")]
public async Task BlazorWasmStandalonePwaTemplate_Works(BrowserKind browserKind)
{
// Additional arguments are needed. See: https://github.com/dotnet/aspnetcore/issues/24278
Expand Down Expand Up @@ -196,6 +199,7 @@ public async Task BlazorWasmStandalonePwaTemplate_Works(BrowserKind browserKind)

[Theory]
[InlineData(BrowserKind.Chromium)]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/30882")]
public async Task BlazorWasmHostedPwaTemplate_Works(BrowserKind browserKind)
{
// Additional arguments are needed. See: https://github.com/dotnet/aspnetcore/issues/24278
Expand Down Expand Up @@ -483,6 +487,7 @@ public TemplateInstance(string name, params string[] arguments)

[Theory]
[MemberData(nameof(TemplateData))]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/30880")]
public async Task BlazorWasmHostedTemplate_AzureActiveDirectoryTemplate_Works(TemplateInstance instance)
{
var project = await ProjectFactory.GetOrCreateProject(instance.Name, Output);
Expand Down Expand Up @@ -666,8 +671,8 @@ private void UpdatePublishedSettings(Project serverProject)
{
command = "dotnet-serve";
args = "--roll-forward LatestMajor " + args; // dotnet-serve targets net5.0 by default
}
}

var serveProcess = ProcessEx.Run(Output, publishDir, command, args);
var listeningUri = ResolveListeningUrl(serveProcess);
return (serveProcess, listeningUri);
Expand Down

0 comments on commit fc1257a

Please sign in to comment.