How to test a custom action?

In v2 this used to work
livewire(EditOrder::class, [
        $order->getKey(),
    ])
        ->callPageAction('return');


but in V3 it gives
Method Illuminate\Http\Response::callPageAction does not exist.

I changed callPageAction to runAction and now I'm getting
Unable to call component method. Public method [return] not found on component
Solution
Try callAction()
Was this page helpful?