diff --git a/tests/spec/choices_spec.js b/tests/spec/choices_spec.js index 0b96342..4cd81bb 100644 --- a/tests/spec/choices_spec.js +++ b/tests/spec/choices_spec.js @@ -333,12 +333,17 @@ describe('Choices', () => { this.choices.input.focus(); // Key down to second choice - this.choices._onKeyDown({ - target: this.choices.input, - keyCode: 40, - ctrlKey: false, - preventDefault: () => {} - }); + let count = 0; + while (count < 2) { + console.log('keydown'); + this.choices._onKeyDown({ + target: this.choices.input, + keyCode: 40, + ctrlKey: false, + preventDefault: () => {} + }); + count++; + } // Key down to select choice this.choices._onKeyDown({