mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 15:02:54 +08:00
Merge pull request #14387 from frenzibyte/fix-lounge-test-scene
Fix playlists lounge sub screen test potentially failing on load
This commit is contained in:
commit
74faf6d101
@ -37,6 +37,7 @@ namespace osu.Game.Tests.Visual.Playlists
|
|||||||
AddStep("reset mouse", () => InputManager.ReleaseButton(MouseButton.Left));
|
AddStep("reset mouse", () => InputManager.ReleaseButton(MouseButton.Left));
|
||||||
|
|
||||||
AddStep("add rooms", () => RoomManager.AddRooms(30));
|
AddStep("add rooms", () => RoomManager.AddRooms(30));
|
||||||
|
AddUntilStep("wait for rooms", () => roomsContainer.Rooms.Count == 30);
|
||||||
|
|
||||||
AddUntilStep("first room is not masked", () => checkRoomVisible(roomsContainer.Rooms[0]));
|
AddUntilStep("first room is not masked", () => checkRoomVisible(roomsContainer.Rooms[0]));
|
||||||
|
|
||||||
@ -53,6 +54,7 @@ namespace osu.Game.Tests.Visual.Playlists
|
|||||||
public void TestScrollSelectedIntoView()
|
public void TestScrollSelectedIntoView()
|
||||||
{
|
{
|
||||||
AddStep("add rooms", () => RoomManager.AddRooms(30));
|
AddStep("add rooms", () => RoomManager.AddRooms(30));
|
||||||
|
AddUntilStep("wait for rooms", () => roomsContainer.Rooms.Count == 30);
|
||||||
|
|
||||||
AddUntilStep("first room is not masked", () => checkRoomVisible(roomsContainer.Rooms[0]));
|
AddUntilStep("first room is not masked", () => checkRoomVisible(roomsContainer.Rooms[0]));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user