1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 08:22:56 +08:00

Add wait step to TestScenePlaylistResultScreen explicitly for screen load

This commit is contained in:
Dean Herbert 2021-12-20 16:58:16 +09:00
parent 2e47c4e25d
commit d79602a912

View File

@ -168,12 +168,13 @@ namespace osu.Game.Tests.Visual.Playlists
})); }));
}); });
AddUntilStep("wait for screen to load", () => resultsScreen.IsLoaded);
waitForDisplay(); waitForDisplay();
} }
private void waitForDisplay() private void waitForDisplay()
{ {
AddUntilStep("wait for load to complete", () => AddUntilStep("wait for scores loaded", () =>
requestComplete requestComplete
&& resultsScreen.ScorePanelList.GetScorePanels().Count() == totalCount && resultsScreen.ScorePanelList.GetScorePanels().Count() == totalCount
&& resultsScreen.ScorePanelList.AllPanelsVisible); && resultsScreen.ScorePanelList.AllPanelsVisible);