- Add GitHub Actions CI workflow (.github/workflows/ci.yml) - Laravel Pint code style check - PHPStan static analysis (level 5) - Test suite with parallel execution - Dusk browser tests (disabled by default) - Add phpstan.neon config (level 5, ignores User notifications methods) - Add Dusk browser tests (ProjectWorkflowTest) - Install laravel/dusk + chromedriver Tests: 101 passing (319 assertions)
22 lines
430 B
PHP
22 lines
430 B
PHP
<?php
|
|
|
|
namespace Tests\Browser;
|
|
|
|
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
|
use Laravel\Dusk\Browser;
|
|
use Tests\DuskTestCase;
|
|
|
|
class ExampleTest extends DuskTestCase
|
|
{
|
|
/**
|
|
* A basic browser test example.
|
|
*/
|
|
public function test_basic_example(): void
|
|
{
|
|
$this->browse(function (Browser $browser) {
|
|
$browser->visit('/')
|
|
->assertSee('Laravel');
|
|
});
|
|
}
|
|
}
|