kingmaker_bgp
kingmaker_bgp
FFilament
Created by kingmaker_bgp on 8/11/2023 in #❓┊help
Testing: process Confirmation Modal on page Action
I'm trying to implement the Testing for the Filament Resource. I tried to follow the Testing documentation given in the Filament v2 Testing page. I simulate the Delete Page Action Filament\Pages\Actions\DeleteAction using the code
livewire(EditRatingTag::class, ['record' => $ratingTag->getRouteKey()])
->callPageAction(DeleteAction::class);
// Todo process the confirmation dialog
livewire(EditRatingTag::class, ['record' => $ratingTag->getRouteKey()])
->callPageAction(DeleteAction::class);
// Todo process the confirmation dialog
But the Issue in my case was I have Confirmation using ->requiresConfirmation() modifier on the Action. How can achieve that in the Testing?
2 replies