Skip to content

Commit fdbe28e

Browse files
authored
Skip Playwright Tests Running in Quarantined Pipeline (#40129)
* Skip Playwright Tests Running in Quarantined Pipeline * Fact -> Theory Skip
1 parent 05b2afb commit fdbe28e

File tree

2 files changed

+10
-20
lines changed

2 files changed

+10
-20
lines changed

src/ProjectTemplates/BlazorTemplates.Tests/BlazorServerTemplateTest.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ public BlazorServerTemplateTest(ProjectFactoryFixture projectFactory)
2525

2626
public override string ProjectType { get; } = "blazorserver";
2727

28-
[Theory]
28+
[Theory(Skip = "https://github.com/dotnet/aspnetcore/issues/30761")]
2929
[InlineData(BrowserKind.Chromium)]
30-
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/30761")]
3130
public async Task BlazorServerTemplateWorks_NoAuth(BrowserKind browserKind)
3231
{
3332
var project = await CreateBuildPublishAsync("blazorservernoauth" + browserKind);
@@ -81,9 +80,8 @@ await BrowserManager.GetBrowserInstance(browserKind, BrowserContextInfo) :
8180
public static IEnumerable<object[]> BlazorServerTemplateWorks_IndividualAuthData =>
8281
BrowserManager.WithBrowsers(new[] { BrowserKind.Chromium }, true, false);
8382

84-
[Theory]
83+
[Theory(Skip = "https://github.com/dotnet/aspnetcore/issues/30882")]
8584
[MemberData(nameof(BlazorServerTemplateWorks_IndividualAuthData))]
86-
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/30882")]
8785
[SkipOnHelix("https://github.com/dotnet/aspnetcore/issues/30825", Queues = "All.OSX")]
8886
public async Task BlazorServerTemplateWorks_IndividualAuth(BrowserKind browserKind, bool useLocalDB)
8987
{
@@ -182,13 +180,12 @@ private async Task TestBasicNavigation(Project project, IPage page)
182180
Assert.Equal(5, await page.Locator("p+table>tbody>tr").CountAsync());
183181
}
184182

185-
[Theory]
183+
[Theory(Skip = "https://github.com/dotnet/aspnetcore/issues/30882")]
186184
[InlineData("IndividualB2C", null)]
187185
[InlineData("IndividualB2C", new string[] { "--called-api-url \"https://graph.microsoft.com\"", "--called-api-scopes user.readwrite" })]
188186
[InlineData("SingleOrg", null)]
189187
[InlineData("SingleOrg", new string[] { "--called-api-url \"https://graph.microsoft.com\"", "--called-api-scopes user.readwrite" })]
190188
[InlineData("SingleOrg", new string[] { "--calls-graph" })]
191-
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/30882")]
192189
public Task BlazorServerTemplate_IdentityWeb_BuildAndPublish(string auth, string[] args)
193190
=> CreateBuildPublishAsync("blazorserveridweb" + Guid.NewGuid().ToString().Substring(0, 10).ToLowerInvariant(), auth, args);
194191

src/ProjectTemplates/BlazorTemplates.Tests/BlazorWasmTemplateTest.cs

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ public BlazorWasmTemplateTest(ProjectFactoryFixture projectFactory)
2323

2424
public override string ProjectType { get; } = "blazorwasm";
2525

26-
[Theory]
26+
[Theory(Skip = "https://github.com/dotnet/aspnetcore/issues/30882")]
2727
[InlineData(BrowserKind.Chromium)]
28-
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/30882")]
2928
public async Task BlazorWasmStandaloneTemplate_Works(BrowserKind browserKind)
3029
{
3130
var project = await CreateBuildPublishAsync("blazorstandalone" + browserKind);
@@ -60,9 +59,8 @@ private static async Task<IPage> NavigateToPage(IBrowserContext browser, string
6059
return page;
6160
}
6261

63-
[Theory]
62+
[Theory(Skip = "https://github.com/dotnet/aspnetcore/issues/30882")]
6463
[InlineData(BrowserKind.Chromium)]
65-
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/30882")]
6664
public async Task BlazorWasmHostedTemplate_Works(BrowserKind browserKind)
6765
{
6866
var project = await CreateBuildPublishAsync("blazorhosted" + BrowserKind.Chromium, args: new[] { "--hosted" }, serverProject: true);
@@ -109,9 +107,8 @@ private static async Task AssertCompressionFormat(AspNetProcess aspNetProcess, s
109107
Assert.Equal(expectedEncoding, response.Content.Headers.ContentEncoding.Single());
110108
}
111109

112-
[Theory]
110+
[Theory(Skip = "https://github.com/dotnet/aspnetcore/issues/30882")]
113111
[InlineData(BrowserKind.Chromium)]
114-
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/30882")]
115112
public async Task BlazorWasmStandalonePwaTemplate_Works(BrowserKind browserKind)
116113
{
117114
var project = await CreateBuildPublishAsync("blazorstandalonepwa", args: new[] { "--pwa" });
@@ -145,9 +142,8 @@ public async Task BlazorWasmStandalonePwaTemplate_Works(BrowserKind browserKind)
145142
}
146143
}
147144

148-
[Theory]
145+
[Theory(Skip = "https://github.com/dotnet/aspnetcore/issues/30882")]
149146
[InlineData(BrowserKind.Chromium)]
150-
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/30882")]
151147
public async Task BlazorWasmHostedPwaTemplate_Works(BrowserKind browserKind)
152148
{
153149
var project = await CreateBuildPublishAsync("blazorhostedpwa", args: new[] { "--hosted", "--pwa" }, serverProject: true);
@@ -216,18 +212,16 @@ private static void ValidatePublishedServiceWorker(Project project)
216212
Assert.True(serviceWorkerContents.Contains($"/* Manifest version: {serviceWorkerAssetsManifestVersion} */", StringComparison.Ordinal));
217213
}
218214

219-
[ConditionalTheory]
215+
[ConditionalTheory(Skip = "https://github.com/dotnet/aspnetcore/issues/30882")]
220216
[InlineData(BrowserKind.Chromium)]
221217
// LocalDB doesn't work on non Windows platforms
222218
[OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX)]
223-
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/30882")]
224219
public Task BlazorWasmHostedTemplate_IndividualAuth_Works_WithLocalDB(BrowserKind browserKind)
225220
=> BlazorWasmHostedTemplate_IndividualAuth_Works(browserKind, true);
226221

227222
// This test depends on BlazorWasmTemplate_CreateBuildPublish_IndividualAuthNoLocalDb running first
228-
[Theory]
223+
[Theory(Skip = "https://github.com/dotnet/aspnetcore/issues/30882")]
229224
[InlineData(BrowserKind.Chromium)]
230-
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/30882")]
231225
[SkipOnHelix("https://github.com/dotnet/aspnetcore/issues/30825", Queues = "All.OSX")]
232226
public Task BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB(BrowserKind browserKind)
233227
=> BlazorWasmHostedTemplate_IndividualAuth_Works(browserKind, false);
@@ -379,9 +373,8 @@ public TemplateInstance(string name, params string[] arguments)
379373
public string[] Arguments { get; }
380374
}
381375

382-
[Theory]
376+
[Theory(Skip = "https://github.com/dotnet/aspnetcore/issues/37782")]
383377
[MemberData(nameof(TemplateData))]
384-
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/37782")]
385378
public Task BlazorWasmHostedTemplate_AzureActiveDirectoryTemplate_Works(TemplateInstance instance)
386379
=> CreateBuildPublishAsync(instance.Name, args: instance.Arguments, targetFramework: "netstandard2.1");
387380

0 commit comments

Comments
 (0)