Testing view page in nested resource

Did someone already testing the nested resource? So I have this structure,
Parent -> Child, i want to testing the view page
    Livewire::test(ViewSomePage::class, [
        'parentRecord' => $parentRecord,
        'record' => $child->getRouteKey(),
    ])
     ->assertSee([
        'something',
    ])

I got this error when i run the test
Missing required parameter for [Route: filament.admin.resources.forms.view] [URI: admin/{tenant}/forms/{record}] [Missing parameter: record]. 


When I diving into the code, i found that this because the breadcrumb stuff, so if i turn the breadcrumb off, the test passed, do someone know how to solve this? without turn off the breadcrumb? like maybe how to set it in the test?

Thanks
image.png
Was this page helpful?