Testing relation manager form field visibility
How can I test form field visibility in a relation manager modal?
e.g. I would assert that "email" field is visible using ViewAction.
I have tried this:
But I get this error:
This is an excerpt of the relation manager component:
Thoughts?
3 Replies
have you found a solution? Did you try
callTableAction
instead of mountTableAction
?I think this might be what you're looking for:
https://github.com/filamentphp/filament/discussions/9105#discussioncomment-12097842
GitHub
Testing a form inside a table action · filamentphp filament · Discu...
I have a relation manager that has an attach action with a custom form to allow setting pivot attributes as documented at https://filamentphp.com/docs/2.x/admin/resources/relation-managers#attachin...
I don’t think the ViewAction has a form and therefore no fields. Try using an EditAction instead.