1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-21 13:13:22 +08:00
osu-lazer/osu.Game.Tests/Visual/Gameplay
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
..
OsuPlayerTestScene.cs Automated pass 2023-06-24 01:00:03 +09:00
SkinnableHUDComponentTestScene.cs test: adapt and create tests to cover new components 2023-01-09 22:07:18 +01:00
TestSceneAllRulesetPlayers.cs Fix crash when loading player instance without exiting previous instance 2023-09-19 05:09:01 +03:00
TestSceneAutoplay.cs Rename {KeyCounter -> InputCount}Controller 2023-06-26 19:27:42 +02:00
TestSceneBeatmapOffsetControl.cs Fix code quality inspection 2023-06-06 21:11:24 +02:00
TestSceneBeatmapSkinFallbacks.cs Rename {KeyCounter -> InputCount}Controller 2023-06-26 19:27:42 +02:00
TestSceneBezierConverter.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneBreakTracker.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneClicksPerSecondCalculator.cs Expose rewinding state of IGameplayClocks 2023-07-06 19:08:42 +09:00
TestSceneColourHitErrorMeter.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneCompletionCancellation.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneDefaultSongProgressGraph.cs Prefix subclasses of DefaultSongProgress with Default 2023-01-18 15:45:16 +09:00
TestSceneDrawableScrollingRuleset.cs Allow toggling SVs in the editor 2023-08-18 18:55:24 +09:00
TestSceneDrawableStoryboardSprite.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneFailAnimation.cs Automated pass 2023-06-24 01:00:03 +09:00
TestSceneFailingLayer.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneFailJudgement.cs Automated pass 2023-06-24 01:00:03 +09:00
TestSceneFrameStabilityContainer.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneGameplayLeaderboard.cs Fix TestFriendScore intermittently failing due to randomness 2023-09-21 21:12:44 +02:00
TestSceneGameplayMenuOverlay.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneGameplayRewinding.cs Rename {KeyCounter -> InputCount}Controller 2023-06-26 19:27:42 +02:00
TestSceneGameplaySamplePlayback.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneGameplaySampleTriggerSource.cs Merge branch 'master' into taiko-hitsounding-final-attempt 2023-07-08 18:10:04 +02:00
TestSceneHitErrorMeter.cs Fix test compile failures from Audio hoisting 2023-02-21 21:03:00 +01:00
TestSceneHoldForMenuButton.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneHUDOverlay.cs Fix incorrect dependency caching 2023-07-20 22:30:49 +09:00
TestSceneJudgementCounter.cs Rename Judgement{Tally -> CountController} 2023-06-26 19:30:04 +02:00
TestSceneKeyBindings.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneKeyCounter.cs Fix broken test step 2023-06-27 20:29:27 +02:00
TestSceneLeadIn.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneLetterboxOverlay.cs Add TestSceneLetterboxOverlay 2023-02-13 14:17:33 +03:00
TestSceneMedalOverlay.cs Automated pass 2023-06-24 01:00:03 +09:00
TestSceneModValidity.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneNightcoreBeatContainer.cs Automated pass 2023-06-24 01:00:03 +09:00
TestSceneOverlayActivation.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneParticleExplosion.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneParticleSpewer.cs Fix regression in time jumping behaviour 2023-07-19 13:38:04 +09:00
TestScenePause.cs Fix wonky log message 2023-02-01 22:58:11 +01:00
TestScenePauseWhenInactive.cs Partial everything 2022-11-27 00:00:27 +09:00
TestScenePerformancePointsCounter.cs Partial everything 2022-11-27 00:00:27 +09:00
TestScenePlayerLoader.cs Add tests for suppressing epilepsy warning when storyboard disabled 2023-04-05 20:56:50 +02:00
TestScenePlayerLocalScoreImport.cs Avoid intercepting temporary files in new test 2023-07-27 17:44:36 +09:00
TestScenePlayerReferenceLeaking.cs Partial everything 2022-11-27 00:00:27 +09:00
TestScenePlayerScoreSubmission.cs Fix intermittent failure in score submission tests 2023-01-13 22:57:40 +03:00
TestScenePoolingRuleset.cs Add assertions covering correctness of judged flags on entry 2023-07-04 23:48:46 +02:00
TestSceneReplay.cs Rename {KeyCounter -> InputCount}Controller 2023-06-26 19:27:42 +02:00
TestSceneReplayDownloadButton.cs Fix flaky test conditions in TestSceneReplayDownloadButton 2022-11-30 17:07:57 +09:00
TestSceneReplayPlayer.cs Add failing test coverage showing that replay will fail on exiting gameplay 2023-03-16 17:12:46 +09:00
TestSceneReplayRecorder.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneScrollingHitObjects.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneSkinEditor.cs Update skin editor cyclic test to match expectations better 2023-07-19 16:56:16 +09:00
TestSceneSkinEditorComponentsList.cs Fix non-compiling test 2023-07-28 23:36:57 +02:00
TestSceneSkinEditorMultipleSkins.cs Fix incorrect dependency caching 2023-07-20 22:30:49 +09:00
TestSceneSkinnableAccuracyCounter.cs Automated pass 2023-06-24 01:00:03 +09:00
TestSceneSkinnableComboCounter.cs Automated pass 2023-06-24 01:00:03 +09:00
TestSceneSkinnableDrawable.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneSkinnableHealthDisplay.cs Automated pass 2023-06-24 01:00:03 +09:00
TestSceneSkinnableHUDOverlay.cs Fix incorrect dependency caching 2023-07-20 22:30:49 +09:00
TestSceneSkinnableScoreCounter.cs Automated pass 2023-06-24 01:00:03 +09:00
TestSceneSkinnableSound.cs Addressed changes 2023-03-21 23:15:49 +01:00
TestSceneSkipOverlay.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneSliderPath.cs Explain why segment end positions are not recovered in test 2023-08-21 08:29:51 +02:00
TestSceneSoloGameplayLeaderboard.cs Massage tests a bit more 2023-05-25 16:38:22 +09:00
TestSceneSongProgress.cs Add test to known time 2023-06-12 16:43:28 +09:00
TestSceneSpectator.cs Move score token to BeginPlaying 2022-12-12 13:59:27 +09:00
TestSceneSpectatorHost.cs Automated pass 2023-06-24 01:00:03 +09:00
TestSceneSpectatorPlayback.cs Move score token to BeginPlaying 2022-12-12 13:59:27 +09:00
TestSceneStarCounter.cs Automated pass 2023-06-24 01:00:03 +09:00
TestSceneStoryboard.cs Add test coverage for failing case 2023-05-17 20:23:37 -07:00
TestSceneStoryboardSamplePlayback.cs Partial everything 2022-11-27 00:00:27 +09:00
TestSceneStoryboardWithOutro.cs Add failing test coverage of saving failed replay causing progression to results 2023-03-29 14:00:11 +09:00
TestSceneUnknownMod.cs Fix TestSceneUnknownMod failing due to null reference 2023-07-25 19:06:13 +09:00
TestSceneUnstableRateCounter.cs Fix test setting invalid TimeOffset 2023-02-09 17:43:04 +09:00