How to test the schema state of a relationship manager that is a simple resource
What I am trying to do:
I'm trying to test if the
TextInput
inside a form of a relation manager has a default value set.
What I did:
AddressResource
is created with this command: php artisan make:filament-resource Address --simple
A relation manager is created for Contact - Address.
The form contains:
My issue/the error:
I can not figure out how to test that the country has a default value when opening the CreateAction form.
Code:
Solution:Jump to solution
Apparently you just need to mount the action before calling
assertSchemaStateSet
:
...1 Reply
Solution
Apparently you just need to mount the action before calling
assertSchemaStateSet
: