Actually test that player was exited

This commit is contained in:
Christine Chen 2021-05-08 22:42:14 -04:00
parent 25312b3e88
commit ae2b5a0806

View File

@ -140,7 +140,7 @@ namespace osu.Game.Tests.Visual.Gameplay
AddStep("disable storyboard", () => LocalConfig.SetValue(OsuSetting.ShowStoryboard, false));
AddUntilStep("completion set by processor", () => Player.ScoreProcessor.HasCompleted.Value);
AddStep("exit via pause", () => Player.ExitViaPause());
AddAssert("score not shown", () => !Player.IsScoreShown);
AddAssert("player exited", () => Stack.CurrentScreen == null);
}
protected override bool AllowFail => true;