"mouseenter" not triggering the "mouseEnter" function of the component
See original GitHub issueHi,
I am trying to run a ember acceptance test and started encountering the issue when I tried to execute the command
triggerEvent('#my-tag-1', 'mouseenter')
The component associated with the element has the function
mouseEnter() {
console.log('mouse entered');
}
When I am running the program in development environment, the event is getting triggered and the console is also getting logged. But when running ember test
it fails to trigger the mouseEnter
event of the component.
I have double checked that element with id #my-tag-1
exists on DOM while running the tests. But still when triggering the mouseenter
event, the component is not capturing it.
my ember version and node version are
ember-cli: 2.9.1
http_parser: 2.7.0
node: 4.5.0
v8: 4.5.103.37
uv: 1.9.1
zlib: 1.2.8
ares: 1.10.1-DEV
icu: 56.1
modules: 46
openssl: 1.0.2h
os: darwin x64
v4.5.0
This was working fine when I was working with ember#2.4.6
and ember-qunit#1.4.0
, but started to break after I upgraded to ember#2.8-lts
and ember-qunit#3.0.1
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
After playing around using
Ember.$
and Jquery’strigger
the mouseEnter function of the component is getting executed from the acceptance test, not sure why triggerEvent is not working@tchan that’s essentially how we worked around it. Thanks 😃