We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Text function is trimming elements when multiple elements are concatenated
To Reproduce This example works in 2.4.1 but does not work in 2.4.2
it('does not work', () => { const wrapper = shallowMount({ template: `<span>Trimmed </span><span>Example</span>` }) expect(wrapper.text()).toBe('Trimmed Example') })
Expected behavior This test should pass as in 2.4.1 version
The text was updated successfully, but these errors were encountered:
Hi @occitaneUbald
This is because of this fix in VTU #2231 But I think the new behavior is probably better.
You'll have to update your test to either:
TrimmedExample
element.textContent
text()
Sorry, something went wrong.
You should at least mention this in your changelog as it is a breaking change in your API
Maybe we should have, but I don't think it was spotted by the contributor who did this fix.
Feel free to open a PR to open the changelog, we'll gladly review it.
And we should probably add an automated test to avoid further undetected regressions in the future on this API
No branches or pull requests
Describe the bug
Text function is trimming elements when multiple elements are concatenated
To Reproduce
This example works in 2.4.1 but does not work in 2.4.2
Expected behavior
This test should pass as in 2.4.1 version
The text was updated successfully, but these errors were encountered: