1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 09:02:58 +08:00

revert changes from GameplayLeaderboard tests

This commit is contained in:
Piggey 2022-11-17 21:38:09 +01:00
parent 5e4ade3bee
commit eb8f6626ab

View File

@ -42,7 +42,7 @@ namespace osu.Game.Tests.Visual.Gameplay
AddStep("add many scores in one go", () =>
{
for (int i = 0; i < 49; i++)
for (int i = 0; i < 32; i++)
createRandomScore(new APIUser { Username = $"Player {i + 1}" });
// Add player at end to force an animation down the whole list.
@ -61,12 +61,6 @@ namespace osu.Game.Tests.Visual.Gameplay
AddUntilStep("wait for tracked score fully visible", () => leaderboard.ScreenSpaceDrawQuad.Intersects(leaderboard.TrackedScore!.ScreenSpaceDrawQuad));
AddUntilStep("ensure player is #50", () => leaderboard.CheckPositionByUsername("You", 50));
AddStep("add one more player", () => createRandomScore(new APIUser { Username = "Player 50" }));
AddUntilStep("ensure player is #?", () => leaderboard.CheckPositionByUsername("You", null));
AddStep("change score to middle", () => playerScore.Value = 1000000);
AddWaitStep("wait for movement", 5);
AddUntilStep("wait for tracked score fully visible", () => leaderboard.ScreenSpaceDrawQuad.Intersects(leaderboard.TrackedScore!.ScreenSpaceDrawQuad));