Skip to content

Commit

Permalink
Remove quarantine attributes from Blazor e2e tests (dotnet#37890)
Browse files Browse the repository at this point in the history
Removing quarantine attribute from tests in the aspnetcore-components-e2e pipeline with 100% success rates
over the lifetime of the pipeline.

This is primarily a cleanup activity as these tests are not run as part of the regular test pipeline and
unquarantining does not change the outcome of the build.

Fixes dotnet#23015
Fixes dotnet#31195
Fixes dotnet#34886
Fixes dotnet#34395
Fixes dotnet#33297
Fixes dotnet#33528
Fixes dotnet#32907
Fixes dotnet#34867
Fixes dotnet#33530
Fixes dotnet#33715
Fixes dotnet#34183
Fixes dotnet#33454
  • Loading branch information
pranavkm authored Oct 28, 2021
1 parent 197a3d1 commit 4504ce5
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ public async Task ClosingTheBrowserWindow_GracefullyDisconnects_TheCurrentCircui
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/23015")]
public async Task ClosingTheBrowserWindow_GracefullyDisconnects_WhenNavigatingAwayFromThePage()
{
// Arrange & Act
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public ServerEventTest(BrowserFixture browserFixture, ToggleExecutionModeServerF
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/31195")]
public override void EventDuringBatchRendering_CanTriggerDOMEvents()
{
base.EventDuringBatchRendering_CanTriggerDOMEvents();
Expand Down
1 change: 0 additions & 1 deletion src/Components/test/E2ETest/Tests/BinaryHttpClientTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ protected override void InitializeAsyncCore()
public override Task InitializeAsync() => base.InitializeAsync(Guid.NewGuid().ToString());

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/33454")]
public void CanSendAndReceiveBytes()
{
IssueRequest("/subdir/api/data");
Expand Down
1 change: 0 additions & 1 deletion src/Components/test/E2ETest/Tests/BindTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,6 @@ public void CanBindTextboxNullableDecimal()
// This tests what happens you put invalid (unconvertable) input in. This is separate from the
// other tests because it requires type="text" - the other tests use type="number"
[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/34183")]
public void CanBindTextbox_Decimal_InvalidInput()
{
var target = Browser.Exists(By.Id("textbox-decimal-invalid"));
Expand Down
3 changes: 0 additions & 3 deletions src/Components/test/E2ETest/Tests/CascadingValueTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ protected override void InitializeAsyncCore()
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/33715")]
public void CanUpdateValuesMatchedByType()
{
var currentCount = Browser.Exists(By.Id("current-count"));
Expand All @@ -50,7 +49,6 @@ public void CanUpdateValuesMatchedByType()
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/33530")]
public void CanUpdateValuesMatchedByName()
{
var currentFlag1Value = Browser.Exists(By.Id("flag-1"));
Expand All @@ -72,7 +70,6 @@ public void CanUpdateValuesMatchedByName()
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/34867")]
public void CanUpdateFixedValuesMatchedByInterface()
{
var currentCount = Browser.Exists(By.Id("current-count"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,6 @@ public void CanUseFocusExtensionToFocusElementPreventScroll()
}

[Theory]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/32907")]
[InlineData("focus-button-onafterrender-invoke")]
[InlineData("focus-button-onafterrender-await")]
public void CanFocusDuringOnAfterRenderAsyncWithFocusInEvent(string triggerButton)
Expand Down
1 change: 0 additions & 1 deletion src/Components/test/E2ETest/Tests/ErrorBoundaryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ public async Task CanHandleErrorsAfterDisposingErrorBoundary()
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/33528")]
public void CanHandleMultipleAsyncErrorsFromDescendants()
{
var container = Browser.Exists(By.Id("multiple-child-errors-test"));
Expand Down
1 change: 0 additions & 1 deletion src/Components/test/E2ETest/Tests/EventBubblingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public void BubblingStandardEvent_FiredOnElementWithHandler()
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/31195")]
public void BubblingStandardEvent_FiredOnElementWithoutHandler()
{
Browser.Exists(By.Id("button-without-onclick")).Click();
Expand Down
3 changes: 0 additions & 3 deletions src/Components/test/E2ETest/Tests/EventTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ public void PreventDefault_AppliesToFormOnSubmitHandlers()
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/31195")]
public void PreventDefault_DotNotApplyByDefault()
{
var appElement = Browser.MountTestComponent<EventPreventDefaultComponent>();
Expand All @@ -212,7 +211,6 @@ public void PreventDefault_DotNotApplyByDefault()
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/31195")]
public void InputEvent_RespondsOnKeystrokes()
{
Browser.MountTestComponent<InputEventComponent>();
Expand All @@ -230,7 +228,6 @@ public void InputEvent_RespondsOnKeystrokes()
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/31195")]
public void InputEvent_RespondsOnKeystrokes_EvenIfUpdatesAreLaggy()
{
// This test doesn't mean much on WebAssembly - it just shows that even if the CPU is locked
Expand Down
1 change: 0 additions & 1 deletion src/Components/test/E2ETest/Tests/GlobalizationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ private static string NormalizeWhitespace(string value)
[Theory]
[InlineData("en-US")]
[InlineData("fr-FR")]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/33297")]
public void CanSetCultureAndParseCultureInvariantNumbersAndDatesWithInputFields(string culture)
{
var cultureInfo = CultureInfo.GetCultureInfo(culture);
Expand Down
3 changes: 0 additions & 3 deletions src/Components/test/E2ETest/Tests/MultipleHostedAppTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ protected override void InitializeAsyncCore()
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/34395")]
public void CanLoadBlazorAppFromSubPath()
{
Navigate("/app/");
Expand All @@ -41,14 +40,12 @@ public void CanLoadBlazorAppFromSubPath()
}

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

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/34395")]
public void ServesStaticAssetsFromClientAppWebRoot()
{
var javascriptExecutor = (IJavaScriptExecutor)Browser;
Expand Down
2 changes: 0 additions & 2 deletions src/Components/test/E2ETest/Tests/RoutingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -610,12 +610,10 @@ public void ResetsScrollPositionWhenPerformingInternalNavigation_ProgrammaticNav
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/31195")]
public void PreventDefault_CanBlockNavigation_ForInternalNavigation_PreventDefaultTarget()
=> PreventDefault_CanBlockNavigation("internal", "target");

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/31195")]
public void PreventDefault_CanBlockNavigation_ForExternalNavigation_PreventDefaultAncestor()
=> PreventDefault_CanBlockNavigation("external", "ancestor");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ protected override void InitializeAsyncCore()
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/34886")]
public void WasmAuthentication_Loads()
{
Browser.Equal("Wasm.Authentication.Client", () => Browser.Title);
Expand Down

0 comments on commit 4504ce5

Please sign in to comment.