how do you test `extraModalActions`?

example code of table (it works fine in UI).
->actions([
EditAction::make('edit-post')
->iconButton()
->form($this->schema())
->extraModalActions([
DeleteAction::make('delete-post')
->iconButton()
->cancelParentActions(),
]),
], ActionsPosition::BeforeColumns);
->actions([
EditAction::make('edit-post')
->iconButton()
->form($this->schema())
->extraModalActions([
DeleteAction::make('delete-post')
->iconButton()
->cancelParentActions(),
]),
], ActionsPosition::BeforeColumns);
Solution:
solution ```php Livewire::test(ListPost::class) ->loadTable() ->mountTableAction(['edit-post', 'delete-post'], $post)...
Jump to solution
2 Replies
Punyapal Shah
Punyapal ShahOP2mo ago
my progress
Livewire::test(ListPosts::class)
->loadTable()
->mountTableAction('edit-post', $post)
->mountTableAction('delete-post', $post)
->callMountedAction();
Livewire::test(ListPosts::class)
->loadTable()
->mountTableAction('edit-post', $post)
->mountTableAction('delete-post', $post)
->callMountedAction();
Solution
Punyapal Shah
Punyapal Shah2mo ago
solution
Livewire::test(ListPost::class)
->loadTable()
->mountTableAction(['edit-post', 'delete-post'], $post)
->callMountedTableAction();
Livewire::test(ListPost::class)
->loadTable()
->mountTableAction(['edit-post', 'delete-post'], $post)
->callMountedTableAction();
Want results from more Discord servers?
Add your server