0👍
✅
I think you’ll be better using text
instead of html
, in that way your current test would be:
expect(wrapper.text()).toBe('Some specific placeholder')
and the one checking for no rendered text can be like this:
expect(wrapper.text()).toBe('')
or
expect(wrapper.text()).not.toBe('Some specific placeholder')
depending on your specific scenario.
Source:stackexchange.com