You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @dmandrade, thank you very much for this useful package. You are doing a good job.
I'm having trouble with my BooleanFilter tests. It was working before I used filament-advancedfilter.
I wrote my tests as described in the filament documentation.
it('can filtering was done with is_active in the customers table.', function () {
$customers = Customer::factory(10)->create();
livewire(ListCustomers::class)
->assertCanSeeTableRecords($customers)
->filterTable('is_active')
->assertCanSeeTableRecords($customers->where('is_active', true))
->assertCanNotSeeTableRecords($customers->where('is_active', false));
});
The assertion assertCanNotNotSeeTableRecords($customers->where('is_active', false)) is currently failing when this test was running before.
The code I configured the filter is very simple. It is as follows.
BooleanFilter::make('is_active')
wire:model has tableFilters.is_active.clause. Can adding .clause cause this problem? Do you have a solution for this?
Hi @dmandrade, thank you very much for this useful package. You are doing a good job.
I'm having trouble with my BooleanFilter tests. It was working before I used
filament-advancedfilter
.I wrote my tests as described in the filament documentation.
The assertion
assertCanNotNotSeeTableRecords($customers->where('is_active', false))
is currently failing when this test was running before.The code I configured the filter is very simple. It is as follows.
wire:model
hastableFilters.is_active.clause
. Can adding.clause
cause this problem? Do you have a solution for this?Laravel: v10.0.5
Filament: v2.17.23
Filament AdvancedFilter: v1.2.1
The text was updated successfully, but these errors were encountered: