I have the following in my blade...
<div>
<contact-form></contact-form>
</div>
I want to test to ensure that the Vue.js component is always mounted in my tests...
public function testRoute()
{
$this->visit('/');
//stuck here
}
Basically I'mm looking forward to testing that the blade has <contact-form>. How should I proceed?
return view('YourView');<contact-form></contact-form>doesn't seem like a valid html markup for me. So validating against it seems like bad practice. Proof me if I'm wrong....