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
Under the hood, Vue Test Utils creates an Event object with the supplied type, and adds properties from the options to the Event object. From reading the specs, it looks like shiftKey is only specified on a MouseEvent object, where shiftKey is a read-only property. It looks like it's behavior on a standard event object is unspecified, so it could be the environment you're running the tests in does not allow use to set the shiftKey property.
Hopefully this info can give you some insight why event options aren't always applied. I'm closing this issue, since it's environment related.
Version
1.0.0-beta.13
Steps to reproduce
This worked pretty fine with an older version. It's not working anymore after the update:
clickOnFile(1, true)
. So now it should click on the item with shift key pressed, but shiftKey is not set at the MouseEvent.there are also some similar issues: #484
What is expected?
The mouseEvent with shiftKey: true.
What is actually happening?
The mouseEvent with shiftKey: false
Thanks
The text was updated successfully, but these errors were encountered: