[BUG] cypress/react18 behaves inconsistently on onmousemove events in component tests #30418
Labels
CT
Issue related to component testing
stage: needs investigating
Someone from Cypress needs to look at this
Current behavior
Mousemove events in my example don't seem to be triggered when using cypress/react18.
Desired behavior
Same behaviour as cypress/react. Being the container actually being moved onmousemove
Test code to reproduce
I have created a repro using the packages we used. The behaviour I am trying to check is dragging the component from one place to another which requires a combination of mousedown -> mousemove -> mouseup events on the target drag handle
https://github.com/niels-van-den-broeck/cypress-18-draggable-repro
Cypress Version
13.15.0
Node version
20.17.0
Operating System
macOS 14.3
Debug Logs
Other
Test does not fail, but visually behaviour change is clear.
I used
npx cypress open --component
to run the tests locally.Changing the
cypress/support/component.js
file fromimport { mount } from 'cypress/react18'
toimport { mount } from 'cypress/react'
should clear up the issue.The text was updated successfully, but these errors were encountered: