© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
Hemith

Testing create form modal on ManageResource page.

it('can create author', function () {
    livewire(ManageAuthors::class)
        ->callAction(CreateAction::class)
        ->fillForm([
            'name' => 'New Author',
            'email' => 'new@test.com'
        ])
        ->call('create');

    dd(Author::all());
});
it('can create author', function () {
    livewire(ManageAuthors::class)
        ->callAction(CreateAction::class)
        ->fillForm([
            'name' => 'New Author',
            'email' => 'new@test.com'
        ])
        ->call('create');

    dd(Author::all());
});


Here is my code for testing the form. But nothing seems to be outputting.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

testing create data in modal form
FilamentFFilament / ❓┊help
3y ago
Testing modal form fields.
FilamentFFilament / ❓┊help
8mo ago
Testing: process Confirmation Modal on page Action
FilamentFFilament / ❓┊help
3y ago
Disable "create another" on form (non modal)
FilamentFFilament / ❓┊help
3y ago