Skip to content

Commit

Permalink
test: add StatsOverview test
Browse files Browse the repository at this point in the history
  • Loading branch information
alkrauss48 committed Dec 18, 2023
1 parent 5bddd01 commit 38a0bb4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/Filament/ImageUploadResourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use App\Filament\Resources\ImageUploadResource\Pages\CreateImageUpload as CreateResource;
use App\Filament\Resources\ImageUploadResource\Pages\EditImageUpload as EditResource;
use App\Filament\Resources\ImageUploadResource\Pages\ListImageUploads as ListResource;
use App\Filament\Resources\ImageUploadResource\Widgets\StatsOverview;
use App\Models\ImageUpload as Model;
// End
use App\Models\User;
Expand Down Expand Up @@ -38,6 +39,11 @@
->assertCanSeeTableRecords($records);
});

it('can see stats overview widget', function () {
livewire(ListResource::class)
->assertSeeLivewire(StatsOverview::class);
});

// Create Records

it('can render create page', function () {
Expand Down

0 comments on commit 38a0bb4

Please sign in to comment.