-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reset selectCandidateWithNumericKeypad for testing
This issue was discovered after #381 if the tests were run locally when `selectCandidateWithNumericKeypad` is set to true. This commit makes the test reset and restore the setting during testing. Ideally we shouldn't let Preferences affect tests, since they are supposed to be hermetic. We have discussed the issue in #294. Until the code is properly refactored, though, this will make the tests pass locally. Also updated the reset-restore code elsewhere in the tests so that the restore always takes place before the assertions.
- Loading branch information
Showing
1 changed file
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters