diff --git a/osu.Desktop.VisualTests/Tests/TestCaseBeatmapDetails.cs b/osu.Desktop.VisualTests/Tests/TestCaseBeatmapDetails.cs index f517e04b4b..3a57c1bc87 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseBeatmapDetails.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseBeatmapDetails.cs @@ -44,10 +44,8 @@ namespace osu.Desktop.VisualTests.Tests }, }); - details.Ratings = Enumerable.Range(1, 10); - newRetryAndFailValues(); - - AddButton("new retry/fail values", newRetryAndFailValues); + AddStep("new retry/fail values", newRetryAndFailValues); + AddStep("new ratings", newRatings); } private int lastRange = 1; @@ -58,5 +56,10 @@ namespace osu.Desktop.VisualTests.Tests details.Retries = Enumerable.Range(lastRange, 100).Select(i => (int)(Math.Sin(i) * 100)); lastRange += 100; } + + private void newRatings() + { + details.Ratings = Enumerable.Range(1, 10); + } } } diff --git a/osu.Game/Screens/Select/BeatmapDetailArea.cs b/osu.Game/Screens/Select/BeatmapDetailArea.cs index d7a104b364..c5dc7057bb 100644 --- a/osu.Game/Screens/Select/BeatmapDetailArea.cs +++ b/osu.Game/Screens/Select/BeatmapDetailArea.cs @@ -124,7 +124,6 @@ namespace osu.Game.Screens.Select if (api == null || beatmap?.BeatmapInfo == null) return; Details.Beatmap = beatmap.Beatmap.BeatmapInfo; - } } }