Skip to content

Commit 0ecfa94

Browse files
committed
add string context example to readme
1 parent c575f20 commit 0ecfa94

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ These transformations are available for tests based on `ember-native-dom-helpers
100100
|---------------------------------------|-------------------------|----------------|
101101
| ```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';``` |
102102
| `find('.foo', context)` | `context.querySelector('.foo')` |
103+
| `find('.foo', '.context')` | `find('.context .foo')` |
103104
| `findAll('.foo', context)` | `context.querySelectorAll('.foo')` |
104105
| `click('.foo', context)` | `click(context.querySelector('.foo'))` |
105106
| `click('.foo', context, { shiftKey: true })` | `click(context.querySelector('.foo'), { shiftKey: true })` |

0 commit comments

Comments
 (0)