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();
Was this page helpful?