Description
Version
1.0.0-beta.16
Reproduction link
https://codesandbox.io/s/6lm4248qjr
Steps to reproduce
In reproduction link, 1.0.0-beta.12
version is selected on which test is passing. Upgrading to any version after 1.0.0-beta.12
causes test to fail with error Cannot read property '$options' of undefined
when setData
is invoked.
What is expected?
Test should pass on later/latest versions as well.
What is actually happening?
Test is failing on vue-test-utils
latest versions(after 1.0.0-beta.12
)
Since this worked fine on version 1.0.0-beta.12
, i assume this bug could be side effect of PR #438 merged in version 1.0.0-beta.13
, as all ElementUI components used in the sample reproduction link are not functional components, so it should work ok on latest version as well. Links to component's used in this sample are below for reference:
https://github.com/ElemeFE/element/blob/v2.3.8/packages/form/src/form.vue
https://github.com/ElemeFE/element/blob/v2.3.8/packages/form/src/form-item.vue
https://github.com/ElemeFE/element/blob/v2.3.8/packages/input/src/input.vue