Infolist component key/name issue while testing

Hi. I'm currently writing tests for infolist hint actions and I have problem accessing nested components. This is my infolist schema:
$infolist->schema([
Tabs::make('tabs')
->key('tabs')
->tabs([
Tabs\Tab::make('notes')
->key('notes')
->schema([
TextEntry::make('internal_note')
->key('internal_note')
->hintAction($this->editInternalNoteAction())
...
])
])
])


// Test:
livewire(OrderDetails::class, ['order' => $this->order])
->callInfolistAction('internal_note', 'editInternalNote', data: ['content' => 'test']);
$infolist->schema([
Tabs::make('tabs')
->key('tabs')
->tabs([
Tabs\Tab::make('notes')
->key('notes')
->schema([
TextEntry::make('internal_note')
->key('internal_note')
->hintAction($this->editInternalNoteAction())
...
])
])
])


// Test:
livewire(OrderDetails::class, ['order' => $this->order])
->callInfolistAction('internal_note', 'editInternalNote', data: ['content' => 'test']);
The only component I can access is the one on the first level which is just tabs component. I've tried dot notation (tabs.notes.internal_note) but still noting. Any idea how can I test these actions? My Filament version is 3.2
0 Replies
No replies yetBe the first to reply to this messageJoin