From 6cc81840418c0f463194c0474c555e2a0d09e3cb Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Fri, 15 Oct 2021 20:17:43 +0900 Subject: [PATCH] Make test scene create room immediately --- .../TestSceneMultiplayerMatchSubScreen.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/osu.Game.Tests/Visual/Multiplayer/TestSceneMultiplayerMatchSubScreen.cs b/osu.Game.Tests/Visual/Multiplayer/TestSceneMultiplayerMatchSubScreen.cs index 21364fe154..9cf9cb7e06 100644 --- a/osu.Game.Tests/Visual/Multiplayer/TestSceneMultiplayerMatchSubScreen.cs +++ b/osu.Game.Tests/Visual/Multiplayer/TestSceneMultiplayerMatchSubScreen.cs @@ -62,19 +62,20 @@ namespace osu.Game.Tests.Visual.Multiplayer [Test] public void TestCreatedRoom() { - AddStep("set playlist", () => + AddStep("create room", () => { SelectedRoom.Value.Playlist.Add(new PlaylistItem { Beatmap = { Value = new TestBeatmap(new OsuRuleset().RulesetInfo).BeatmapInfo }, Ruleset = { Value = new OsuRuleset().RulesetInfo }, }); - }); - AddStep("click create button", () => - { - InputManager.MoveMouseTo(this.ChildrenOfType().Single()); - InputManager.Click(MouseButton.Left); + // Needs to run after components update with the playlist item. + Schedule(() => + { + InputManager.MoveMouseTo(this.ChildrenOfType().Single()); + InputManager.Click(MouseButton.Left); + }); }); AddUntilStep("wait for join", () => Client.Room != null);