1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-30 07:59:54 +08:00

Fix update handling test selecting wrong beatmap

Order has changed after carousel was made to sort by title.
This commit is contained in:
Salman Alshamrani
2025-05-07 07:58:37 +03:00
Unverified
parent 540cfc92da
commit af874ca730
@@ -85,7 +85,7 @@ namespace osu.Game.Tests.Visual.SongSelectV2
[Test]
public void TestSelectionHeld()
{
SelectPrevGroup();
SelectNextGroup();
WaitForSelection(1, 0);
AddAssert("selection is updateable beatmap", () => Carousel.CurrentSelection, () => Is.EqualTo(baseTestBeatmap.Beatmaps[0]));
@@ -101,7 +101,7 @@ namespace osu.Game.Tests.Visual.SongSelectV2
[Test] // Checks that we keep selection based on online ID where possible.
public void TestSelectionHeldDifficultyNameChanged()
{
SelectPrevGroup();
SelectNextGroup();
WaitForSelection(1, 0);
AddAssert("selection is updateable beatmap", () => Carousel.CurrentSelection, () => Is.EqualTo(baseTestBeatmap.Beatmaps[0]));
@@ -117,7 +117,7 @@ namespace osu.Game.Tests.Visual.SongSelectV2
[Test] // Checks that we fallback to keeping selection based on difficulty name.
public void TestSelectionHeldDifficultyOnlineIDChanged()
{
SelectPrevGroup();
SelectNextGroup();
WaitForSelection(1, 0);
AddAssert("selection is updateable beatmap", () => Carousel.CurrentSelection, () => Is.EqualTo(baseTestBeatmap.Beatmaps[0]));