diff --git a/README.md b/README.md index bd2efb54..5e1fd107 100644 --- a/README.md +++ b/README.md @@ -103,8 +103,8 @@ won't be generated. - [x] It can replicate records - [x] It can force delete records - [x] It can bulk force delete records + - [x] It can reset table filters - [ ] It can filter table records - - [ ] It can reset table filters - [ ] It can remove table filters ## Running the package tests @@ -130,6 +130,7 @@ vendor/bin/pest --exclude-group=filament-tests ### Additional grouping options | Name | Includes | |----------------------|---------------------------------------------------------| +| `filters` | Runs the tests for the filters | | `page` | Runs the tests for the pages | | `render` | Runs the tests that check if the page renders correctly | | `table` | Runs the tests for the table | diff --git a/stubs/Table/Filters/CanResetFilters.stub b/stubs/Table/Filters/CanResetFilters.stub index 9c9962c4..16bae793 100644 --- a/stubs/Table/Filters/CanResetFilters.stub +++ b/stubs/Table/Filters/CanResetFilters.stub @@ -1,7 +1,7 @@ it('can reset table filters', function () { - $posts = {{ MODEL_SINGULAR_NAME }}::factory()->count(3)->create(); + $records = {{ MODEL_SINGULAR_NAME }}::factory(3)->create(); livewire(List{{ MODEL_PLURAL_NAME }}::class) ->resetTableFilters() - ->assertCanSeeTableRecords($posts); -}); \ No newline at end of file + ->assertCanSeeTableRecords($records); +})->group('filters', 'table');