Skip to content

Commit

Permalink
Merge pull request #116 from dissto/adjust-reset-filters
Browse files Browse the repository at this point in the history
chore: Adjust to use the same code style as the other tests
  • Loading branch information
CodeWithDennis authored Apr 4, 2024
2 parents 69e8150 + 0583055 commit 781e15f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 |
Expand Down
6 changes: 3 additions & 3 deletions stubs/Table/Filters/CanResetFilters.stub
Original file line number Diff line number Diff line change
@@ -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);
});
->assertCanSeeTableRecords($records);
})->group('filters', 'table');

0 comments on commit 781e15f

Please sign in to comment.