-
Notifications
You must be signed in to change notification settings - Fork 264
Closed
Description
First : thank you so much for InertiaJs, it's awesome ! slightly_smiling_face
i use
inertiajs/inertia-laravel 0.6.3
Laravel 8.40
i got this respones every time i run my test and i have checked everything,
sometime i use Assert insted of AssertableInertia
if someone could point me on the right direction i would be glad
use Inertia\Testing\AssertableInertia;
use RefreshDatabase;
public function test_home_page_sponsors(): void
{
$sponsors = Sponsor::factory()->count(5)->create();
$this->get('/')
->assertInertia(fn (AssertableInertia $page) => $page
->component('HomePage')
->has('sponsors.data', 5)
->has(
'sponsors.data.0',
fn (AssertableInertia $page) => $page
->where('title', $sponsors[0]->title)
->etc()
));
}
Metadata
Metadata
Assignees
Labels
No labels