Merge pull request #18866 from peppy/fix-storyboard-outro-skip-test-flaky

Fix `TestStoryboardSkipOutro` occasionally failing due to strict timings
This commit is contained in:
Dan Balasescu
2022-06-27 18:33:02 +09:00
committed by GitHub

View File

@ -52,10 +52,11 @@ namespace osu.Game.Tests.Visual.Gameplay
[Test]
public void TestStoryboardSkipOutro()
{
AddStep("set storyboard duration to long", () => currentStoryboardDuration = 200000);
CreateTest(null);
AddUntilStep("completion set by processor", () => Player.ScoreProcessor.HasCompleted.Value);
AddStep("skip outro", () => InputManager.Key(osuTK.Input.Key.Space));
AddAssert("player is no longer current screen", () => !Player.IsCurrentScreen());
AddUntilStep("player is no longer current screen", () => !Player.IsCurrentScreen());
AddUntilStep("wait for score shown", () => Player.IsScoreShown);
}