first commit
This commit is contained in:
32
tests/Browser/HomePageTest.php
Normal file
32
tests/Browser/HomePageTest.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Browser;
|
||||
|
||||
use Tests\DuskTestCase;
|
||||
use Laravel\Dusk\Browser;
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
|
||||
class HomePageTest extends DuskTestCase
|
||||
{
|
||||
//use DatabaseMigrations;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
//$this->artisan('db:seed');
|
||||
}
|
||||
|
||||
/**
|
||||
* A Dusk test example.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testText()
|
||||
{
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser->visit('/') //->dump()
|
||||
->waitForText('Wave is the perfect starter kit')
|
||||
->assertSeeIn('h2', 'Wave is the perfect starter kit');
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user