Tuesday, 9 October 2018

Laravel 5.5 testing blade

I have the following in my blade

<div>
  <contact-form></contact-form>
</div>

I want to test to ensure that always the vue component is always mounted so in my tests

public function testRoute()
{
    $this->visit('/');
    //stuck here
}

So basically am looking forward to test that the blade has <contact-form> How do i proceed?



from Laravel 5.5 testing blade

No comments:

Post a Comment