mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
added to the docs
This commit is contained in:
@@ -349,6 +349,20 @@ it('can remove all table filters', function () {
|
||||
});
|
||||
```
|
||||
|
||||
### Authorization
|
||||
|
||||
To ensure that a particular user cannot see a filter, you can use the `assertTableFilterVisible()` and `assertTableFilterHidden()` methods:
|
||||
|
||||
```php
|
||||
use function Pest\Livewire\livewire;
|
||||
|
||||
it('shows the correct filters', function () {
|
||||
livewire(PostResource\Pages\ListPosts::class)
|
||||
->assertTableFilterVisible('created_at')
|
||||
->assertTableFilterHidden('author');
|
||||
});
|
||||
```
|
||||
|
||||
## Actions
|
||||
|
||||
### Calling actions
|
||||
|
||||
Reference in New Issue
Block a user