fasna
fasna
FFilament
Created by fasna on 10/24/2023 in #❓┊help
Access the Temporary uploaded file in form action
No description
2 replies
FFilament
Created by fasna on 10/18/2023 in #❓┊help
Test visible elements in Infolist
I'm trying to write testcases for the Infolist in my index page of resources. I copuldn't find any documentation on that, I can load the component. No idea, how can I proceed further? Need to assert, whether I can see the correct record and field names. Here is my test code:
test('user can view an individual user', function () {
$user = User::get()->first();
$testable = livewire(ListUsers::class)
->callTableAction('view', $user);
$testable->instance()->getInfolist('infolist');
});
test('user can view an individual user', function () {
$user = User::get()->first();
$testable = livewire(ListUsers::class)
->callTableAction('view', $user);
$testable->instance()->getInfolist('infolist');
});
2 replies
FFilament
Created by fasna on 10/17/2023 in #❓┊help
Filament Testing Forms in Modal
I'm getting the exact same error, tried removing Infolist in my resource page too, still the same error. https://github.com/filamentphp/filament/discussions/8962
4 replies
FFilament
Created by fasna on 10/5/2023 in #❓┊help
Display a filter based on previously selected filter option
I have a table, where there is a user_id column, which will be referred to two tables, teachers and students. I have a flag column to identify the user_type. Based on the user_type, I'll fetch the user's data from the relevant table, Students or Teachers. The table and form were customized and worked as expected. I need to add the same for the filters, where the user can choose the user_type first and based on that I need to display the Select filter option with the relevant usernames. How we can achieve this in filament, is it possible to do that?
4 replies