© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•7mo ago•
5 replies
Jonathan Christiani

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',
    ])
    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]. 
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
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Widget in infolist (view / resource ) page
FilamentFFilament / ❓┊help
13mo ago
Conditional action on view resource page
FilamentFFilament / ❓┊help
3y ago
Getting Url of Resource View Page
FilamentFFilament / ❓┊help
3y ago
nested resource
FilamentFFilament / ❓┊help
3y ago