1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-02 01:01:18 +08:00

Add failing tests for traversal on group headers

This commit is contained in:
Dean Herbert
2025-02-04 02:41:56 +09:00
Unverified
parent b433eef138
commit b5c4e3bc14
2 changed files with 29 additions and 0 deletions
@@ -81,6 +81,20 @@ namespace osu.Game.Tests.Visual.SongSelect
BeatmapPanel? getSelectedPanel() => Carousel.ChildrenOfType<BeatmapPanel>().SingleOrDefault(p => p.Selected.Value);
}
[Test]
public void TestGroupSelectionOnHeader()
{
AddBeatmaps(10, 3);
WaitForDrawablePanels();
SelectNextGroup();
WaitForGroupSelection(0, 0);
SelectPrevPanel();
SelectPrevGroup();
WaitForGroupSelection(2, 9);
}
[Test]
public void TestKeyboardSelection()
{
@@ -129,6 +129,21 @@ namespace osu.Game.Tests.Visual.SongSelect
WaitForSelection(0, 0);
}
[Test]
public void TestGroupSelectionOnHeader()
{
AddBeatmaps(10, 3);
WaitForDrawablePanels();
SelectNextGroup();
SelectNextGroup();
WaitForSelection(1, 0);
SelectPrevPanel();
SelectPrevGroup();
WaitForSelection(0, 0);
}
[Test]
public void TestKeyboardSelection()
{