Skip to content

Commit c575f20

Browse files
committed
update readme
1 parent 947e5df commit c575f20

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,12 @@ These transformations are available for tests based on `ember-native-dom-helpers
9898

9999
| Before | After | Transform |
100100
|---------------------------------------|-------------------------|----------------|
101-
| ```import { click, find, findAll, fillIn, focus, blur, triggerEvent, keyEvent, waitFor, waitUntil } from 'ember-native-dom-helpers';``` | ```import { click, find, findAll, fillIn, focus, blur, triggerEvent, triggerKeyEvent, waitFor, waitUntil } from '@ember/test-helpers';``` | `migrate-imports.js` |
102-
101+
| ```import { click, find, findAll, fillIn, focus, blur, triggerEvent, keyEvent, waitFor, waitUntil } from 'ember-native-dom-helpers';``` | ```import { click, find, findAll, fillIn, focus, blur, triggerEvent, triggerKeyEvent, waitFor, waitUntil } from '@ember/test-helpers';``` |
102+
| `find('.foo', context)` | `context.querySelector('.foo')` |
103+
| `findAll('.foo', context)` | `context.querySelectorAll('.foo')` |
104+
| `click('.foo', context)` | `click(context.querySelector('.foo'))` |
105+
| `click('.foo', context, { shiftKey: true })` | `click(context.querySelector('.foo'), { shiftKey: true })` |
106+
103107

104108
### Replace find/findAll
105109

0 commit comments

Comments
 (0)