Currently, there is no assertSeeVolt available on the TestResponse or TestView. I've found a way to achieve smoke testing for this using FragmentAlias::encode, it also works with FragmentMap::get. But the latter runs slower and sometimes cannot find a component, guessing it's because it's not in the look-up. 🤔
I submitted a PR earlier to add this to the documentation (https://github.com/livewire/livewire/pull/6204) as an example for others. But given it's a hacky way to achieve the desired result.
Is there a way we could get assertSeeVolt added in a future beta release? 🙂
Currently, there is no
assertSeeVolt
available on theTestResponse
orTestView
. I've found a way to achieve smoke testing for this usingFragmentAlias::encode
, it also works withFragmentMap::get
. But the latter runs slower and sometimes cannot find a component, guessing it's because it's not in the look-up. 🤔I submitted a PR earlier to add this to the documentation (https://github.com/livewire/livewire/pull/6204) as an example for others. But given it's a hacky way to achieve the desired result.
Is there a way we could get
assertSeeVolt
added in a future beta release? 🙂