Make sure test is in a break

...because apparently it may take a while to update the flag.
This commit is contained in:
Bartłomiej Dach 2023-11-10 16:30:21 +09:00
parent 1818a84034
commit b7938e78a0
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ public void TestTouchDuringBreak()
loadPlayer(); loadPlayer();
AddStep("seek to 2000", () => currentPlayer.GameplayClockContainer.Seek(2000)); AddStep("seek to 2000", () => currentPlayer.GameplayClockContainer.Seek(2000));
AddUntilStep("wait until 2000", () => currentPlayer.GameplayClockContainer.CurrentTime, () => Is.GreaterThanOrEqualTo(2000)); AddUntilStep("wait until 2000", () => currentPlayer.GameplayClockContainer.CurrentTime, () => Is.GreaterThanOrEqualTo(2000));
AddUntilStep("wait until break entered", () => currentPlayer.IsBreakTime.Value);
AddStep("touch playfield", () => AddStep("touch playfield", () =>
{ {
var touch = new Touch(TouchSource.Touch1, currentPlayer.DrawableRuleset.Playfield.ScreenSpaceDrawQuad.Centre); var touch = new Touch(TouchSource.Touch1, currentPlayer.DrawableRuleset.Playfield.ScreenSpaceDrawQuad.Centre);