mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 05:02:55 +08:00
add visual tests
This commit is contained in:
parent
d48c56818f
commit
9da57c66a2
@ -42,7 +42,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
|
||||
AddStep("add many scores in one go", () =>
|
||||
{
|
||||
for (int i = 0; i < 32; i++)
|
||||
for (int i = 0; i < 49; i++)
|
||||
createRandomScore(new APIUser { Username = $"Player {i + 1}" });
|
||||
|
||||
// Add player at end to force an animation down the whole list.
|
||||
@ -61,6 +61,12 @@ 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));
|
||||
|
Loading…
Reference in New Issue
Block a user