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
Using Karma test runner in IE11 environment, run the Counter.spec.js test.
What is expected?
wrapper.find('button') should return a wrapper of the matching element.
What is actually happening?
No match is returned and an error is thrown that trigger must be provided a non-empty wrapper.
This is due to IE11 not supporting Element.matches(). Intead IE11 has the non-standard Element.msMatchesSelector(). MDN has a simple polyfill that should be implemented and solves this problem:
Version
1.0.0-beta.29
Reproduction link
https://github.com/eddyerburgh/vue-test-utils-karma-example
Steps to reproduce
Using Karma test runner in IE11 environment, run the Counter.spec.js test.
What is expected?
wrapper.find('button')
should return a wrapper of the matching element.What is actually happening?
No match is returned and an error is thrown that
trigger
must be provided a non-empty wrapper.This is due to IE11 not supporting
Element.matches()
. Intead IE11 has the non-standardElement.msMatchesSelector()
. MDN has a simple polyfill that should be implemented and solves this problem:I'm happy to open a PR to fix this, I just don't know where the correct place to install this polyfill would be.
The text was updated successfully, but these errors were encountered: