© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
5 replies
dyo

Test case in edit record page

How can create test case with pest to assert the view can be rendered, the inputs is disabled, and the button save is not exist..

I tried simple with :

php 
$this->actingAs($user)
    ->get(CampaignResource::getUrl('edit', ['record' => $campaign->getRouteKey()]))
    ->assertSuccessful();
php 
$this->actingAs($user)
    ->get(CampaignResource::getUrl('edit', ['record' => $campaign->getRouteKey()]))
    ->assertSuccessful();


The status code returns 403.
But when I tried in browser with same user, it's successfully rendered..

What should i do?
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

Eager load record on Edit Page
FilamentFFilament / ❓┊help
3y ago
select field display id of record in edit page
FilamentFFilament / ❓┊help
2y ago
Edit only single record with custom page
FilamentFFilament / ❓┊help
3y ago
Get record in edit widget
FilamentFFilament / ❓┊help
3y ago