@@ -2,7 +2,7 @@ import { module, test } from 'qunit';
2
2
import { setupApplicationTest } from 'ember-qunit' ;
3
3
import { fillIn , currentURL , triggerEvent , visit , blur } from '@ember/test-helpers' ;
4
4
import a11yAudit from 'ember-a11y-testing/test-support/audit' ;
5
- import { triggerKeyDown , triggerKeyPress } from 'ember-keyboard' ;
5
+ import { keyDown , keyPress } from 'ember-keyboard/test-support/test-helpers ' ;
6
6
import axeConfig from '../axe-config' ;
7
7
import { title } from '../helpers/dom' ;
8
8
import setupMirage from '../helpers/setup-mirage' ;
@@ -82,19 +82,19 @@ module('Acceptance | search', function(hooks) {
82
82
await visit ( '/' ) ;
83
83
84
84
await blur ( '[data-test-search-input]' ) ;
85
- await triggerKeyPress ( 'KeyA' ) ;
85
+ await keyPress ( 'KeyA' ) ;
86
86
assert . dom ( '[data-test-search-input]' ) . isNotFocused ( ) ;
87
87
88
88
await blur ( '[data-test-search-input]' ) ;
89
- await triggerKeyPress ( 'KeyS' ) ;
89
+ await keyPress ( 'KeyS' ) ;
90
90
assert . dom ( '[data-test-search-input]' ) . isFocused ( ) ;
91
91
92
92
await blur ( '[data-test-search-input]' ) ;
93
- await triggerKeyDown ( 'KeyS' ) ;
93
+ await keyDown ( 'KeyS' ) ;
94
94
assert . dom ( '[data-test-search-input]' ) . isFocused ( ) ;
95
95
96
96
await blur ( '[data-test-search-input]' ) ;
97
- await triggerKeyDown ( 'shift+KeyS' ) ;
97
+ await keyDown ( 'shift+KeyS' ) ;
98
98
assert . dom ( '[data-test-search-input]' ) . isFocused ( ) ;
99
99
} ) ;
100
100
0 commit comments