You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improvements in code snippets for autocomplete-component tutorial
**WHY**: the existing code diff highlights were confusing when going
through the tutorial.
**WHAT**:
- update diff to highlight *all* added lines in each section
- add diff highlighting and more lines to snippet where `triggerKeyEvent` and `fillIn` are added so provide more context on where in the file this happens.
- update snippet where 2nd integration test for component was added to
make it clearer that it is all new content. Also update phrasing of the
code comments in the snippet to prevent usage of a hyphen that was
causing weird syntax highlighting.
@@ -468,13 +468,17 @@ We force the action by generating a `keyUp` event on our input field, and then a
468
468
469
469
First add `triggerKeyEvent` and `fillIn` to the list of imports. The [`fillIn`](https://github.com/emberjs/ember-test-helpers/blob/master/API.md#fillin) helper simulates the user filling in the element. The [`triggerKeyEvent`](https://github.com/emberjs/ember-test-helpers/blob/master/API.md#triggerkeyevent) helper sends a key stroke event to the UI, simulating the user typing a key.
0 commit comments