vue + element-ui 当多个页面使用el-select时,使用
单元测试测试所有页面时,出现错误。
环境;vue:v2.5.1,element-ui:v2.7.0,karma:1.4.1, mocha:3.2.0
修改vue和element-ui版本无效;修改单元测试插件,使用 @vue/cli-plugin-unit-mocha无效。
ERROR LOG: '[Vue warn]: Error in callback for watcher "options": "TypeError: undefined is not an object (evaluating 'this.$el.querySelectorAll')";
ERROR LOG: '[Vue warn]: Error in directive clickoutside update hook: "TypeError: Attempted to assign to readonly property."
ERROR LOG: '[Vue warn]: Error in created hook: "TypeError: undefined is not an object (evaluating 'el._transitionClasses')"