Skip to content

Commit

Permalink
Unfocus textbox when dismissing popover in test scene
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzibyte committed May 11, 2022
1 parent 96db530 commit d51689e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ private void velocityPopoverHasIndeterminateValue() => AddUntilStep("velocity po

private void dismissPopover()
{
AddStep("unfocus textbox", () => InputManager.Key(Key.Escape));
AddStep("dismiss popover", () => InputManager.Key(Key.Escape));
AddUntilStep("wait for dismiss", () => !this.ChildrenOfType<DifficultyPointPiece.DifficultyEditPopover>().Any(popover => popover.IsPresent));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ private void samplePopoverHasIndeterminateBank() => AddUntilStep("sample popover

private void dismissPopover()
{
AddStep("unfocus textbox", () => InputManager.Key(Key.Escape));
AddStep("dismiss popover", () => InputManager.Key(Key.Escape));
AddUntilStep("wait for dismiss", () => !this.ChildrenOfType<SamplePointPiece.SampleEditPopover>().Any(popover => popover.IsPresent));
}
Expand Down

0 comments on commit d51689e

Please sign in to comment.