mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:03:08 +08:00
Fix test not actually testing desired scenario anymore
The test was checking the test scene's own `SelectedMods` bindable rather than the multiplayer screen's, and the former was never actually being mutated by anything. Therefore the case would pass even on `master` with the fix reverted.
This commit is contained in:
parent
804e856160
commit
94c5207f36
@ -269,8 +269,9 @@ namespace osu.Game.Tests.Visual.Navigation
|
|||||||
|
|
||||||
AddStep("Enable autoplay", () => { Game.SelectedMods.Value = new[] { osuAutomationMod }; });
|
AddStep("Enable autoplay", () => { Game.SelectedMods.Value = new[] { osuAutomationMod }; });
|
||||||
|
|
||||||
PushAndConfirm(() => new Screens.OnlinePlay.Multiplayer.Multiplayer());
|
Screens.OnlinePlay.Multiplayer.Multiplayer multiplayer = null;
|
||||||
AddUntilStep("Mods are removed", () => SelectedMods.Value.Count == 0);
|
PushAndConfirm(() => multiplayer = new Screens.OnlinePlay.Multiplayer.Multiplayer());
|
||||||
|
AddUntilStep("Mods are removed", () => multiplayer.Mods.Value.Count == 0);
|
||||||
|
|
||||||
AddStep("Return to menu", () => Game.ScreenStack.CurrentScreen.Exit());
|
AddStep("Return to menu", () => Game.ScreenStack.CurrentScreen.Exit());
|
||||||
AddUntilStep("Mods are restored", () => Game.SelectedMods.Value.Contains(osuAutomationMod));
|
AddUntilStep("Mods are restored", () => Game.SelectedMods.Value.Contains(osuAutomationMod));
|
||||||
|
Loading…
Reference in New Issue
Block a user