1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-16 13:03:34 +08:00

Fix one more test failure

This commit is contained in:
Bartłomiej Dach
2025-04-25 08:14:12 +02:00
Unverified
parent 242f1bf68f
commit ae8fb2ce08
2 changed files with 4 additions and 2 deletions
@@ -560,7 +560,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
private PlayerArea getInstance(int userId) => spectatorScreen.ChildrenOfType<PlayerArea>().Single(p => p.UserId == userId);
private DrawableGameplayLeaderboardScore getLeaderboardScore(int userId) => spectatorScreen.ChildrenOfType<DrawableGameplayLeaderboardScore>().Single(s => s.User?.OnlineID == userId);
private DrawableGameplayLeaderboardScore getLeaderboardScore(int userId) => spectatorScreen.Leaderboard.ChildrenOfType<DrawableGameplayLeaderboardScore>().Single(s => s.User?.OnlineID == userId);
private int[] getPlayerIds(int count) => Enumerable.Range(PLAYER_1_ID, count).ToArray();
}
@@ -40,6 +40,8 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
/// </summary>
public bool AllPlayersLoaded => instances.All(p => p.PlayerLoaded);
internal DrawableGameplayLeaderboard Leaderboard { get; private set; }
protected override UserActivity InitialActivity => new UserActivity.SpectatingMultiplayerGame(Beatmap.Value.BeatmapInfo, Ruleset.Value);
[Resolved]
@@ -150,7 +152,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
}, scoreDisplayContainer.Add);
}
});
leaderboardFlow.Insert(0, new DrawableGameplayLeaderboard
leaderboardFlow.Insert(0, Leaderboard = new DrawableGameplayLeaderboard
{
Expanded = { Value = true }
});