FilamentF
Filament3y ago
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();


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

What should i do?
image.png
Was this page helpful?