From 0818deac17110c65ae22005c5616c55e67913847 Mon Sep 17 00:00:00 2001
From: Andrei Zavatski <megaman9919@gmail.com>
Date: Sun, 9 May 2021 06:06:34 +0300
Subject: [PATCH] Fix potential test scene failure due to showMoreButton not
 being loaded in time

---
 osu.Game.Tests/Visual/Online/TestSceneNewsOverlay.cs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/osu.Game.Tests/Visual/Online/TestSceneNewsOverlay.cs b/osu.Game.Tests/Visual/Online/TestSceneNewsOverlay.cs
index f10b385c61..46454879da 100644
--- a/osu.Game.Tests/Visual/Online/TestSceneNewsOverlay.cs
+++ b/osu.Game.Tests/Visual/Online/TestSceneNewsOverlay.cs
@@ -35,6 +35,7 @@ namespace osu.Game.Tests.Visual.Online
         {
             setUpNewsResponse(responseWithCursor, "Set up cursor response");
             AddStep("Show", () => overlay.Show());
+            AddUntilStep("Show more button is ready", () => showMoreButton != null);
             AddAssert("Show More button is visible", () => showMoreButton.Alpha == 1);
             setUpNewsResponse(responseWithNoCursor, "Set up no cursor response");
             AddStep("Click Show More", () => showMoreButton.Click());