added browser tests
linter / quality (push) Failing after 1m3s
tests / ci (8.3) (push) Failing after 49s
tests / ci (8.4) (push) Failing after 1m4s
tests / ci (8.5) (push) Failing after 1m5s

This commit is contained in:
Daan Meijer
2026-06-23 15:03:34 +02:00
parent 1e33bfb50b
commit a35b50bec6
15 changed files with 491 additions and 171 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
use Laravel\Dusk\Browser;
use Tests\DuskTestCase;
use App\Models\User;
class DashboardTest extends DuskTestCase
{
public function test_authenticated_users_can_visit_the_dashboard(): void
{
$user = User::factory()->create();
$this->browse(function (Browser $browser) use ($user) {
$browser->loginAs($user)
->visit('/dashboard')
->assertSee('Recent Activity');
});
}
}