Skip to content

Commit

Permalink
Skip unstable tests in "ButtonTests", "ListViewTests" and "NumericUpD…
Browse files Browse the repository at this point in the history
…ownTests" (dotnet#11330)

* Skip unstable tests in "ButtonTests", "ListViewTests" and "NumericUpDownTests"

* Add indent
  • Loading branch information
LeafShi1 authored May 10, 2024
1 parent 51f4466 commit 27d748e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ await InputSimulator.SendAsync(
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/11324")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/11324")]
public async Task Button_DialogResult_SpaceToClickFocusedButtonAsync()
{
await RunTestAsync(async (form, button) =>
Expand Down Expand Up @@ -87,7 +90,10 @@ await InputSimulator.SendAsync(
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/11326")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/11326")]
public async Task Button_CancelButton_EscapeClicksCancelButtonAsync()
{
await RunTestAsync(async (form, button) =>
Expand Down Expand Up @@ -305,7 +311,10 @@ await InputSimulator.SendAsync(
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/11327")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/11327")]
public async Task Button_PerformClick_Fires_OnClickAsync()
{
await RunTestAsync((form, button) =>
Expand Down Expand Up @@ -341,7 +350,10 @@ await InputSimulator.SendAsync(
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/11325")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/11325")]
public async Task Button_Hotkey_Fires_OnClickAsync()
{
await RunTestAsync(async (form, button) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ await InputSimulator.SendAsync(
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/11328")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/11328")]
public async Task ListView_Group_NavigateKeyboard_SucceedsAsync()
{
await RunTestAsync(async (form, listView) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ public NumericUpDownTests(ITestOutputHelper testOutputHelper)
{
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/11329")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/11329")]
public async Task NumericUpDownAccessibleObject_Focused_ReturnsCorrectValueAsync()
{
await RunSingleControlTestAsync<NumericUpDown>(async (form, control) =>
Expand Down

0 comments on commit 27d748e

Please sign in to comment.