From 9899541fbbcc2bb4594128ed156190ccbdcac6e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Dach?= Date: Wed, 14 May 2025 14:41:22 +0200 Subject: [PATCH] Fix test failure --- .../SongSelectV2/TestSceneBeatmapCarouselNoGrouping.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/osu.Game.Tests/Visual/SongSelectV2/TestSceneBeatmapCarouselNoGrouping.cs b/osu.Game.Tests/Visual/SongSelectV2/TestSceneBeatmapCarouselNoGrouping.cs index d3d9ca210d..3ca8773adb 100644 --- a/osu.Game.Tests/Visual/SongSelectV2/TestSceneBeatmapCarouselNoGrouping.cs +++ b/osu.Game.Tests/Visual/SongSelectV2/TestSceneBeatmapCarouselNoGrouping.cs @@ -249,14 +249,16 @@ namespace osu.Game.Tests.Visual.SongSelectV2 AddUntilStep("standalone panels displayed", () => GetVisiblePanels().Any()); SelectNextGroup(); - WaitForSelection(0, 0); + // both sets have a difficulty with 0.00* star rating. + // in the case of a tie when sorting, the first tie-breaker is `DateAdded` descending, which will pick the last set added (see `TestResources.CreateTestBeatmapSetInfo()`). + WaitForSelection(1, 0); SelectNextGroup(); - WaitForSelection(1, 0); + WaitForSelection(0, 0); SelectNextPanel(); Select(); - WaitForSelection(0, 1); + WaitForSelection(1, 1); } private void checkSelectionIterating(bool isIterating)