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?
0 Replies
No replies yetBe the first to reply to this messageJoin