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
*`options.backwards`**[boolean][71]** indicates if the the user navigates backwards (optional, default `false`)
317
317
*`options.unRestrainTabIndex`**[boolean][71]** indicates if tabbing should throw an error when tabindex is greater than 0 (optional, default `false`)
@@ -376,7 +376,7 @@ Emulating tapping a button using `tap`
376
376
tap('button');
377
377
```
378
378
379
-
Returns **[Promise][66]<([Event][73] | [Array][70]<[Event][73]> | void)>** resolves when settled
379
+
Returns **[Promise][66]\<void>** resolves when settled
380
380
381
381
### triggerEvent
382
382
@@ -394,7 +394,7 @@ Using `triggerEvent` to upload a file
394
394
395
395
When using `triggerEvent` to upload a file the `eventType` must be `change` and you must pass the
396
396
`options` param as an object with a key `files` containing an array of
397
-
[Blob][74].
397
+
[Blob][73].
398
398
399
399
```javascript
400
400
triggerEvent(
@@ -406,8 +406,8 @@ triggerEvent(
406
406
407
407
Using `triggerEvent` to upload a dropped file
408
408
409
-
When using `triggerEvent` to handle a dropped (via drag-and-drop) file, the `eventType` must be `drop`. Assuming your `drop` event handler uses the [DataTransfer API][75],
410
-
you must pass the `options` param as an object with a key of `dataTransfer`. The `options.dataTransfer` object should have a `files` key, containing an array of [File][76].
409
+
When using `triggerEvent` to handle a dropped (via drag-and-drop) file, the `eventType` must be `drop`. Assuming your `drop` event handler uses the [DataTransfer API][74],
410
+
you must pass the `options` param as an object with a key of `dataTransfer`. The `options.dataTransfer` object should have a `files` key, containing an array of [File][75].
411
411
412
412
```javascript
413
413
triggerEvent(
@@ -426,8 +426,8 @@ Returns **[Promise][66]\<void>** resolves when the application is settled
426
426
### triggerKeyEvent
427
427
428
428
Triggers a keyboard event of given type in the target element.
429
-
It also requires the developer to provide either a string with the [`key`][77]
430
-
or the numeric [`keyCode`][78] of the pressed key.
429
+
It also requires the developer to provide either a string with the [`key`][76]
430
+
or the numeric [`keyCode`][77] of the pressed key.
431
431
Optionally the user can also provide a POJO with extra modifiers for the event.
432
432
433
433
#### Parameters
@@ -493,6 +493,14 @@ Find the first element matched by the given selector. Equivalent to calling
493
493
494
494
*`selector`**[string][64]** the selector to search for
495
495
496
+
#### Examples
497
+
498
+
Find all of the elements matching '.my-selector'.
499
+
500
+
```javascript
501
+
findAll('.my-selector');
502
+
```
503
+
496
504
Returns **[Element][65]** matched element or null
497
505
498
506
### findAll
@@ -505,12 +513,29 @@ of a `NodeList`.
505
513
506
514
*`selector`**[string][64]** the selector to search for
507
515
516
+
#### Examples
517
+
518
+
Finding the first element with id 'foo'
519
+
520
+
```javascript
521
+
find('#foo');
522
+
```
523
+
508
524
Returns **[Array][70]** array of matched elements
509
525
510
526
### getRootElement
511
527
512
528
Get the root element of the application under test (usually `#ember-testing`)
513
529
530
+
#### Examples
531
+
532
+
Getting the root element of the application and checking that it is equal
Copy file name to clipboardExpand all lines: CHANGELOG.md
+18-4Lines changed: 18 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,26 @@
1
+
# CHANGELOG
1
2
3
+
## v2.9.0 (2022-12-14)
2
4
5
+
#### :rocket: Enhancement
6
+
*[#1269](https://github.com/emberjs/ember-test-helpers/pull/1269) Re-export hasEmberVersion (and its type) from @ember/test-helpers ([@gitKrystan](https://github.com/gitKrystan))
0 commit comments