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

Merge pull request #16166 from peppy/playlist-tests-wait-step

Add wait step to `TestScenePlaylistResultScreen` explicitly for screen load
This commit is contained in:
Bartłomiej Dach 2021-12-20 09:36:57 +01:00 committed by GitHub
commit 51386bb48d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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