<?php

namespace Tests\Browser;

use Tests\DuskTestCase;
use Laravel\Dusk\Browser;
use Illuminate\Foundation\Testing\DatabaseMigrations;

class ExampleTest extends DuskTestCase
{
    /**
     * A basic browser test example.
     *
     * @return void
     */
    public function testBasicExample()
    {
        $this->browse(function (Browser $browser) {
            $browser->visit('/')
                    ->assertSee('Built with love');
        });
    }
}

<?php

namespace Tests\Browser;

use Tests\DuskTestCase;
use Laravel\Dusk\Browser;
use Illuminate\Foundation\Testing\DatabaseMigrations;

class ExampleTest extends DuskTestCase
{
    /**
     * A basic browser test example.
     *
     * @return void
     */
    public function testBasicExample()
    {
        $this->browse(function (Browser $browser) {
            $browser->visit('/')
                    ->assertSee('Jonny Barnes');
        });
    }
}

--- 
+++ 
@@ -17,7 +17,7 @@
     {
         $this->browse(function (Browser $browser) {
             $browser->visit('/')
-                    ->assertSee('Jonny Barnes');
+                    ->assertSee('Built with love');
         });
     }
 }
Use a static piece of text on the homepage, so test can pass both locally and on travis
