Skip to content

Skip unstable ListView UI tests #13514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions src/test/integration/UIIntegrationTests/ListViewTests.cs
Original file line number Diff line number Diff line change
@@ -40,7 +40,10 @@ await InputSimulator.SendAsync(
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/11328")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/11328")]
public async Task ListView_Group_NavigateKeyboard_SucceedsAsync()
{
await RunTestAsync(async (form, listView) =>
@@ -109,7 +112,10 @@ await RunTestAsync(async (form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsTheory]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
[InlineData(2, 2, 150, 150, 0, 1, (int)NavigateDirection.NavigateDirection_FirstChild)]
[InlineData(4, 3, 150, 150, 0, 3, (int)NavigateDirection.NavigateDirection_LastChild)]
[InlineData(4, 1, 150, 150, 0, 1, (int)NavigateDirection.NavigateDirection_LastChild)]
@@ -132,7 +138,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsTheory]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
[InlineData(1, 0, 150, 150, (int)NavigateDirection.NavigateDirection_FirstChild)]
[InlineData(1, 2, 150, 150, (int)NavigateDirection.NavigateDirection_FirstChild)]
[InlineData(2, 1, 10, 10, (int)NavigateDirection.NavigateDirection_FirstChild)]
@@ -153,7 +162,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsTheory]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
[InlineData(4, 1)]
[InlineData(2, 3)]
public async Task ListView_Tile_SubItem_FragmentNavigate_Sibling_ReturnsNullAsync(int columnCount, int subItemsCount)
@@ -173,7 +185,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsTheory]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
[InlineData(4, 3, 150, 150, 3)]
[InlineData(4, 0, 150, 150, 0)]
[InlineData(4, 1, 150, 150, 1)]
@@ -195,7 +210,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsTheory]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
[InlineData(4, 1)]
[InlineData(2, 5)]
public async Task ListView_Tile_GetChildAsync(int columnCount, int subItemsCount)
@@ -215,7 +233,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsTheory]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
[InlineData(4, 0, 150, 150)]
[InlineData(1, 2, 150, 150)]
[InlineData(2, 1, 10, 10)]
@@ -235,7 +256,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsTheory]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
[InlineData(4, 1, 150, 150, -1, 1)]
[InlineData(2, 1, 10, 10, -1, -1)]
public async Task ListView_Tile_GetChildIndex_ForDifferentSize_ReturnsExpectedAsync(int columnCount, int subItemsCount, int width, int height, int expected1, int expected2)
@@ -254,7 +278,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
public async Task ListView_Tile_SubItem_FragmentNavigate_NextSibling_ReturnsExpectedAsync()
{
await RunTestAsync((form, listView) =>
@@ -275,7 +302,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
public async Task ListView_Tile_SubItem_HitTest_ReturnExpectedAsync()
{
await RunTestAsync((form, listView) =>
@@ -301,7 +331,10 @@ Point GetSubItemLocation(int itemIndex, int subItemIndex) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
public async Task ListView_Tile_SubItem_FragmentNavigate_Sibling_ReturnsNull_For_SmallSizeAsync()
{
await RunTestAsync((form, listView) =>
@@ -319,7 +352,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
public async Task ListView_Tile_SubItem_FragmentNavigate_Child_ReturnsNullAsync()
{
await RunTestAsync((form, listView) =>
@@ -336,7 +372,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
public async Task ListView_Tile_GetChild_ReturnsExpectedAsync()
{
await RunTestAsync((form, listView) =>
@@ -356,7 +395,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
public async Task ListView_Tile_GetChild_ReturnsExpected_For_BigSizeAsync()
{
await RunTestAsync((form, listView) =>
@@ -378,7 +420,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
public async Task ListView_Tile_GetChildIndex_ReturnsExpectedAsync()
{
await RunTestAsync((form, listView) =>
@@ -397,7 +442,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
public async Task ListView_Tile_GetChildIndex_ReturnsExpected_SubItemsMoreThanColumnsAsync()
{
await RunTestAsync((form, listView) =>
@@ -417,7 +465,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
public async Task ListView_Tile_GetChildIndex_ReturnsMinusOne_For_Single_ColumnAsync()
{
await RunTestAsync((form, listView) =>
@@ -434,7 +485,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
public async Task ListView_Tile_GetChildIndex_ReturnsExpected_For_BigSizeAsync()
{
await RunTestAsync((form, listView) =>
@@ -460,7 +514,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
public async Task ListView_Tile_ColumnProperty_ReturnsMinusOneAsync()
{
await RunTestAsync((form, listView) =>