FilamentF
Filament10mo ago
swilla

Reactive Forms Testing CI

I have a test for a form component that is working well locally, but I cannot get it to pass in GitHub Actions. I've tried so many different iterations without any luck.

Here is the error that is returned in GitHub Actions:

 FAIL  Tests\Feature\Filament\ReservationCreateTest
  ⨯ webhook is dispatched when creating reservation for rentable with w… 5.17s  
  ────────────────────────────────────────────────────────────────────────────  
   FAILED  Tests\Feature\Filament\ReservationCreateTest > webhook is dispatc…   
  Component has errors: "data.rentable"
Failed asserting that false is true.

  at vendor/livewire/livewire/src/Features/SupportValidation/TestsValidation.php:109
    105▕     {
    106▕         $errors = $this->errors();
    107▕ 
    108▕         if (empty($keys)) {
  ➜ 109▕             PHPUnit::assertTrue($errors->isEmpty(), 'Component has errors: "'.implode('", "', $errors->keys()).'"');
    110▕ 
    111▕             return $this;
    112▕         }
    113▕

      +4 vendor frames 
  5   tests/Feature/Filament/ReservationCreateTest.php:108


  Tests:    1 failed, 2 skipped, 17 passed, 53 pending (49 assertions)
  Duration: 71.91s
Was this page helpful?