Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HelpWindowTest: fix failing test in non-headless mode
HelpWindowTest#focus_helpWindowNotFocused_focused() asserts that the HelpWindow is not in focus when it is first shown, and then asserts that the HelpWindow comes into focus after calling HelpWindow#focus(). When tests are run in non-headless mode, the HelpWindow will be in focus when it is first shown, thus rendering our first assumption false and causing the test to fail. Let's update the test to focus on another TestFx Stage, which will remove focus from the HelpWindow when it is first shown, ensuring that the initial assumption is true.
- Loading branch information