© 2026 Hedgehog Software, LLC

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

How do you test repeaters?

Livewire::test(CreateFlexListing::class)
  ->fillForm([
      'occupationId' => Occupation::factory()->create()->id,
      'description' => 'Looking for help with our Laravel app!',
      'shifts' => [
          [
              'date' => '2023-02-16',
              'to' => '17:00',
              'from' => '09:00',
          ],
      ]
  ])
  ->call('save')
  ->assertHasNoFormErrors();
Livewire::test(CreateFlexListing::class)
  ->fillForm([
      'occupationId' => Occupation::factory()->create()->id,
      'description' => 'Looking for help with our Laravel app!',
      'shifts' => [
          [
              'date' => '2023-02-16',
              'to' => '17:00',
              'from' => '09:00',
          ],
      ]
  ])
  ->call('save')
  ->assertHasNoFormErrors();


I have a test like this but it doesn't seem to work:

Component has errors: "data.shifts.5c4b1833-1895-4afb-9689-c763674b6672.date", "data.shifts.5c4b1833-1895-4afb-9689-c763674b6672.startsAt", "data.shifts.5c4b1833-1895-4afb-9689-c763674b6672.endsAt"
Component has errors: "data.shifts.5c4b1833-1895-4afb-9689-c763674b6672.date", "data.shifts.5c4b1833-1895-4afb-9689-c763674b6672.startsAt", "data.shifts.5c4b1833-1895-4afb-9689-c763674b6672.endsAt"
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

how do you test `extraModalActions`?
FilamentFFilament / ❓┊help
15mo ago
How do you test FileUpload input fields?
FilamentFFilament / ❓┊help
3y ago
Compact Repeaters
FilamentFFilament / ❓┊help
5mo ago
Filamentphp Repeaters
FilamentFFilament / ❓┊help
2y ago