1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-21 10:32:55 +08:00
osu-lazer/osu.Game.Tests/Visual
Bartłomiej Dach e45d456324
Fix TestFriendScore intermittently failing due to randomness
If `createRandomScore()` happened to randomly pick the highest total
score when called with `friend` as the sole argument, that particular
score would not be pink.

`GetScoreByUsername()` would arbitrarily pick the first score for the
user, so in this particular case where a friend had the number 1 score,
the test would wrongly fail.

Fix by checking whether any of the 3 added friend scores have received
the pink colour. Because there is more than 1 friend score in the test,
doing so ensures that at least one of those should eventually become
pink (because, obviously, you can't have two scores at number 1).
2023-09-21 21:12:44 +02:00
..
Audio Rename NormalSliderBar.cs to RoundedSliderBar.cs 2023-02-02 17:24:45 +01:00
Background Ensure background of gameplay is black when storyboard is overriding background display 2023-08-02 15:50:15 +09:00
Beatmaps Implement nano beatmap card 2023-09-18 11:30:14 +02:00
Collections Add test coverage showing commit failure in manage collections dialog 2023-06-04 12:50:30 +09:00
Colours Automated pass 2023-06-24 01:00:03 +09:00
Components Partial everything 2022-11-27 00:00:27 +09:00
Editing Rename SliderVelocity to SliderVelocityMultiplier to distinguish from Velocity 2023-09-06 19:01:08 +09:00
Gameplay Fix TestFriendScore intermittently failing due to randomness 2023-09-21 21:12:44 +02:00
Menus Fix star fountain directions not matching stable 2023-08-21 17:59:24 +09:00
Mods Automated pass 2023-06-24 01:00:03 +09:00
Multiplayer Add more test coverage to multi spectator screen 2023-08-16 17:14:42 +09:00
Navigation Add failing test coverage of selection not being retained on song select 2023-08-28 10:05:59 +02:00
Online Merge branch 'beatmap-card-nano' into missing-beatmap 2023-09-18 14:56:06 +02:00
Playlists Automated pass 2023-06-24 01:00:03 +09:00
Ranking Crudely fix crashes when switching between TestResultsWithPlayer cases 2023-07-13 19:06:02 +02:00
Settings Fix broken test 2023-07-13 22:28:26 +02:00
SongSelect Add test coverage for delete hotkey 2023-09-21 20:01:59 +02:00
UserInterface Pass ArchiveReader instead of Stream to simplify resolution code 2023-09-19 17:49:15 +09:00
TestMultiplayerComponents.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneOsuScreenStack.cs Rename AllowTrackAdjustments to more understandable ApplyModTrackAdjustments 2023-07-25 20:20:53 +09:00