sfrigzs
sfrigzs
FFilament
Created by sfrigzs on 10/9/2024 in #❓┊help
Method App\Filament\Pages\RegisterTeam::getCachedSubNavigation does not exist.
I am trying to implement multi-tenancy in my app. After following the steps in the documentation, After login, I received the following error when I was redirected to the 'new' URL
3 replies
FFilament
Created by sfrigzs on 7/27/2024 in #❓┊help
Channel about testing
It would be great if there was a channel to gather all topics related to testing with Filament.
6 replies
FFilament
Created by sfrigzs on 6/15/2024 in #❓┊help
Help with action tests
I can't figure out what's wrong with my code. For my tags resource, I have the following data editing test, which works very well.
test('Edit tag', function () {

$tag = Tag::factory()->create();

livewire(ListTags::class)
->callTableAction(EditAction::class, $tag, data: [
'title' => $title = 'Editing tag',
])
->assertHasNoTableActionErrors();

expect($tag->refresh())->title->toBe($title);

});
test('Edit tag', function () {

$tag = Tag::factory()->create();

livewire(ListTags::class)
->callTableAction(EditAction::class, $tag, data: [
'title' => $title = 'Editing tag',
])
->assertHasNoTableActionErrors();

expect($tag->refresh())->title->toBe($title);

});
I have the following similar code for my tasks resource, but this code doesn't work.
test('Edit simple task', function () {

$task = Task::factory()->create();

livewire(ListTasks::class)
->callTableAction(EditAction::class, $task, data: [
'title' => $title = 'Editing task',
])
->assertHasNoTableActionErrors();

expect($task->refresh())->title->toBe($title);

});
test('Edit simple task', function () {

$task = Task::factory()->create();

livewire(ListTasks::class)
->callTableAction(EditAction::class, $task, data: [
'title' => $title = 'Editing task',
])
->assertHasNoTableActionErrors();

expect($task->refresh())->title->toBe($title);

});
It's as if the persistence in the database doesn't happen for tasks. It also doesn't work for deleting records. I've been stuck on this for 3 days. Could someone help me?
Failed asserting that two strings are identical.
Expected :'Editing task'
Actual :'Et omnis corrupti hic.'
Failed asserting that two strings are identical.
Expected :'Editing task'
Actual :'Et omnis corrupti hic.'
3 replies
FFilament
Created by sfrigzs on 6/10/2024 in #❓┊help
Open the column visibility dropdown in the slideOver
Hi devs, is it possible to open a dropdown in a slideOver, similar to filters? https://filamentphp.com/docs/3.x/tables/columns/getting-started#customizing-the-toggle-columns-dropdown-trigger-action
2 replies