Aethyrion
Aethyrion
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
Any joy?
21 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
21 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
21 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
21 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
21 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
Still getting that same error 😮‍💨
21 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
No description
21 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing modal form in resource relation
No description
21 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
21 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
21 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();
21 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
21 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
21 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?
21 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing pagination on relation manager
Thanks for your help @dissto 😁
4 replies
FFilament
Created by Aethyrion on 1/16/2025 in #❓┊help
Testing pagination on relation manager
Yep - test is passing now 👍
4 replies
FFilament
Created by Aethyrion on 1/12/2025 in #❓┊help
Help with failing test when using `searchTableColumns`
$table
->columns([
Tables\Columns\TextColumn::make('first_name')->searchable()->sortable(),
Tables\Columns\TextColumn::make('last_name')->searchable()->sortable(),
Tables\Columns\TextColumn::make('email')->searchable()->sortable(),
Tables\Columns\IconColumn::make('active')->boolean()->alignCenter(),
])
$table
->columns([
Tables\Columns\TextColumn::make('first_name')->searchable()->sortable(),
Tables\Columns\TextColumn::make('last_name')->searchable()->sortable(),
Tables\Columns\TextColumn::make('email')->searchable()->sortable(),
Tables\Columns\IconColumn::make('active')->boolean()->alignCenter(),
])
4 replies
FFilament
Created by Aethyrion on 1/12/2025 in #❓┊help
Help with failing test when using `searchTableColumns`
Oops, sorry, wrong schema
4 replies
FFilament
Created by Aethyrion on 6/8/2024 in #❓┊help
Sum summarizer not respecting MoneyCast in table output
Perfect - thanks!
4 replies