test relationmanager CreateAction

Hello guys,

could somebody submit some example code how to test a relation manager create action?
  • how to fill the form, how to submit the form?Based on the documentation here:[](https://filamentphp.com/docs/3.x/actions/testing#modal-content)i wrote this test, but it fails, cannot see the text:```$this->actingAs($user) ->get(EventResource::getUrl('view', ['tenant' => $tenant->slug, 'record' => $event->id])) ->assertSuccessful(); livewire(EventResource\RelationManagers\AttendeeRelationManager::class, [ 'ownerRecord' => $event, 'pageClass' => EventResource\Pages\ViewEvent::class, ]) ->assertSuccessful() ->mountAction(CreateAction::class) ->assertSee('Create Attendee');```
Was this page helpful?