I saw many unit test examples testing real DOM elements.
ex:
expect(vm.$el.querySelector('div').textContent).toBe('xxx')
What's the purpose of checking the text of DOM elements?
Someone says that you can test computed values, but aren't computed values tested by using nextTick?
Also, people say that HTML tags will affect the text of the element:
<htmlTag><a><p>{{user.name}}</p></a></htmlTag>
And what if the product is in multiple languages?
I believe that we should test data, state, functions, and elements which should display correctly in the HTML template.
What are all you guys doing with Vue's unit test?