From af874ca7307db927ab69eeff340e2099649d7240 Mon Sep 17 00:00:00 2001 From: Salman Alshamrani Date: Wed, 7 May 2025 07:58:37 +0300 Subject: [PATCH] Fix update handling test selecting wrong beatmap Order has changed after carousel was made to sort by title. --- .../SongSelectV2/TestSceneBeatmapCarouselUpdateHandling.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osu.Game.Tests/Visual/SongSelectV2/TestSceneBeatmapCarouselUpdateHandling.cs b/osu.Game.Tests/Visual/SongSelectV2/TestSceneBeatmapCarouselUpdateHandling.cs index 4c6202d94c..b9a468d580 100644 --- a/osu.Game.Tests/Visual/SongSelectV2/TestSceneBeatmapCarouselUpdateHandling.cs +++ b/osu.Game.Tests/Visual/SongSelectV2/TestSceneBeatmapCarouselUpdateHandling.cs @@ -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]));