mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 17:13:06 +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 }; });
|
||||
|
||||
PushAndConfirm(() => new Screens.OnlinePlay.Multiplayer.Multiplayer());
|
||||
AddUntilStep("Mods are removed", () => SelectedMods.Value.Count == 0);
|
||||
Screens.OnlinePlay.Multiplayer.Multiplayer multiplayer = null;
|
||||
PushAndConfirm(() => multiplayer = new Screens.OnlinePlay.Multiplayer.Multiplayer());
|
||||
AddUntilStep("Mods are removed", () => multiplayer.Mods.Value.Count == 0);
|
||||
|
||||
AddStep("Return to menu", () => Game.ScreenStack.CurrentScreen.Exit());
|
||||
AddUntilStep("Mods are restored", () => Game.SelectedMods.Value.Contains(osuAutomationMod));
|
||||
|
Loading…
Reference in New Issue
Block a user