livewire(ManageCardQRCodes::class) ->mountAction('export-qr-codes') ->fillForm([ 'batch_no' => $batchNo, ], 'mountedActionForm') ->callMountedAction() ->assertHasNoActionErrors() ->assertFileDownloaded("qr-codes-{$batchNo}.zip")
Actions\Action::make('export-qr-codes') ->form([ Forms\Components\Select::make('batch_no') ->searchable() ->getSearchResultsUsing(function (string $search) { //REDACTED }) ->suffixAction( //I want to call this action and assert batch_no has been set Forms\Components\Actions\Action::make('latest') ->icon('heroicon-o-rectangle-stack') ->action(function (Forms\Set $set) { $latestBatchNo = //REDACTED $set('batch_no', $latestBatchNo); }), ), ])
Forms\Components\TagsInput::make('tags') ->alphaDash(), //This always fail