© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
20 replies
Mark Chaney

Testing and requiresConfirmation

I have a RM with a table row action, that row action launches a modal with an approval action. I can get all the way up that point and it works fine in my test and will perform the approveAction, but if i add a confirmation to the approveAction, I cant seem to figure how to click the "Confirm" on the requiresConfirmation modal as it doesnt appear to have a mountAction for me to be able to call. This is wher i am so far:
    Livewire::test(RftaResource\RelationManagers\ComparableUnitsRelationManager::class, [
        'pageClass' => RftaResource\Pages\ViewRfta::class,
        'ownerRecord' => $rfta,
    ])
        ->assertCanSeeTableRecords(collect([$comparable]))
        ->mountTableAction(ViewAction::class, record: $comparable->id)
        ->assertSee('Review Comparable Unit')
        ->assertSee('approveAction')
        ->mountTableAction('approveAction')
        ->callMountedTableAction() // requires confirmation
        // now how do I click confirm on the requiresConfirmation() modal?
        ->assertHasNoTableActionErrors();
    Livewire::test(RftaResource\RelationManagers\ComparableUnitsRelationManager::class, [
        'pageClass' => RftaResource\Pages\ViewRfta::class,
        'ownerRecord' => $rfta,
    ])
        ->assertCanSeeTableRecords(collect([$comparable]))
        ->mountTableAction(ViewAction::class, record: $comparable->id)
        ->assertSee('Review Comparable Unit')
        ->assertSee('approveAction')
        ->mountTableAction('approveAction')
        ->callMountedTableAction() // requires confirmation
        // now how do I click confirm on the requiresConfirmation() modal?
        ->assertHasNoTableActionErrors();
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

SaveFormAction : requiresConfirmation()
FilamentFFilament / ❓┊help
3y ago
Submit - requiresConfirmation
FilamentFFilament / ❓┊help
3y ago
Conditional requiresConfirmation ignored
FilamentFFilament / ❓┊help
13mo ago