Aethyrion
Aethyrion
FFilament
Created by Aethyrion on 2/8/2025 in #❓┊help
Adding an action button alongside the New Record button in list view
Ahhh gotcha - thanks!
4 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
I know I’ve marked this as solved already, but just had a thought: what if I had multiple relation managers on a resource? This works at the moment as there’s only one.
27 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
Really appreciate you taking the time to help with this 🙂
27 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
It looks like it was assertHasNoFormErrors that was the issue. If I put that back in place of assertHasNoTableActionErrors then the InfoList error comes back. I thought because it's a form despite it being in a modal and not on a page that I could still use formFill, assertHasNoFormErrors, etc.
27 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
No description
27 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
No worries! I'm glad of the help ^^
27 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
Any joy?
27 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
Which I don’t understand why because I’m not using an info list anywhere
27 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
Unfortunately not. I keep getting that same error about InfoList
27 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
The form itself works fine if I were to create an address manually
27 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
I'm not sure exactly what an InfoList is, but I'm not explicitly using one in anything I've set up so far
27 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
Still getting that same error 😮‍💨
27 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
No description
27 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
No description
27 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
So I'm not sure where InfoList is coming from
27 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
It's weird because the error says that InfoList is being passed into form(), but I dd it out and it's an instance of Filament\Forms\Form which is what I expect
27 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
Hmm, still the same. This is what the test looks like at the moment with these couple of updates:
$customer = Customer::factory()->create();

$livewire = Livewire::test(
name: AddressesRelationManager::class,
params: [
'ownerRecord' => $customer,
'pageClass' => EditCustomer::class,
],
);

$livewire
->mountTableAction('create')
->setTableActionData([
'line_1' => $line1 = 'Test Line 1',
'line_2' => $line2 = 'Test Line 2',
'city' => $city = 'Test City',
'state' => $state = 'Test State',
'postal_code' => $postalCode = 'TE1 1ST',
'type' => $type = AddressType::BILLING->value,
])
->callMountedTableAction()
->assertHasNoFormErrors();
$customer = Customer::factory()->create();

$livewire = Livewire::test(
name: AddressesRelationManager::class,
params: [
'ownerRecord' => $customer,
'pageClass' => EditCustomer::class,
],
);

$livewire
->mountTableAction('create')
->setTableActionData([
'line_1' => $line1 = 'Test Line 1',
'line_2' => $line2 = 'Test Line 2',
'city' => $city = 'Test City',
'state' => $state = 'Test State',
'postal_code' => $postalCode = 'TE1 1ST',
'type' => $type = AddressType::BILLING->value,
])
->callMountedTableAction()
->assertHasNoFormErrors();
27 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
fillForm has a second argument $form which defaults to "form", as this is a relation manager form do I need to pass in a form name? Not sure what I'd pass in though or how I'd find the name
27 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
No bueno. I get the same error as in that screengrab
27 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
Anyone able to point me in the right direction with this?
27 replies