mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 20:03:21 +08:00
Merge pull request #17917 from bdach/mod-overlay/flaky-free-mod-select-test
Fix flaky test in free mod select test scene
This commit is contained in:
commit
27c7864562
@ -21,8 +21,11 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
{
|
{
|
||||||
State = { Value = Visibility.Visible }
|
State = { Value = Visibility.Visible }
|
||||||
});
|
});
|
||||||
|
AddUntilStep("all column content loaded",
|
||||||
|
() => freeModSelectScreen.ChildrenOfType<ModColumn>().Any()
|
||||||
|
&& freeModSelectScreen.ChildrenOfType<ModColumn>().All(column => column.IsLoaded && column.ItemsLoaded));
|
||||||
|
|
||||||
AddAssert("all visible mods are playable",
|
AddUntilStep("all visible mods are playable",
|
||||||
() => this.ChildrenOfType<ModPanel>()
|
() => this.ChildrenOfType<ModPanel>()
|
||||||
.Where(panel => panel.IsPresent)
|
.Where(panel => panel.IsPresent)
|
||||||
.All(panel => panel.Mod.HasImplementation && panel.Mod.UserPlayable));
|
.All(panel => panel.Mod.HasImplementation && panel.Mod.UserPlayable));
|
||||||
|
Loading…
Reference in New Issue
Block a user