Skip to content

Commit

Permalink
Add failing tests for traversal on group headers
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Feb 3, 2025
1 parent b433eef commit b5c4e3b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,20 @@ public void TestCarouselRemembersSelection()
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()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,21 @@ public void TestTraversalBeyondEnd()
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()
{
Expand Down

0 comments on commit b5c4e3b

Please sign in to comment.