1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 15:17:27 +08:00

Add even more safety against unloaded components

This commit is contained in:
Bartłomiej Dach 2023-06-27 21:20:59 +02:00
parent af66ccbfdf
commit 7052f87eb8
No known key found for this signature in database

View File

@ -96,7 +96,9 @@ namespace osu.Game.Tests.Visual.Gameplay
return hudOverlay;
});
});
AddUntilStep("wait for load", () => hudOverlay.IsAlive);
AddUntilStep("HUD overlay loaded", () => hudOverlay.IsAlive);
AddUntilStep("components container loaded",
() => hudOverlay.ChildrenOfType<SkinComponentsContainer>().Any(scc => scc.ComponentsLoaded));
}
protected override Ruleset CreateRulesetForSkinProvider() => new OsuRuleset();