1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 23:12:56 +08:00

Fix test failure in MultiplayerMatchSongSelect due to multiple overlays present

https://github.com/ppy/osu/actions/runs/4868337922/jobs/8681736995?pr=23308.
This commit is contained in:
Dean Herbert 2023-05-03 14:30:57 +09:00
parent 6b017ac05f
commit 384693a431

View File

@ -98,6 +98,10 @@ namespace osu.Game.Tests.Visual.Multiplayer
AddStep($"select {requiredMod.ReadableName()} as required", () => songSelect.Mods.Value = new[] { (Mod)Activator.CreateInstance(requiredMod) });
AddAssert("freemods empty", () => songSelect.FreeMods.Value.Count == 0);
// A previous test's mod overlay could still be fading out.
AddUntilStep("wait for only one freemod overlay", () => this.ChildrenOfType<FreeModSelectOverlay>().Count() == 1);
assertHasFreeModButton(allowedMod, false);
assertHasFreeModButton(requiredMod, false);
}