mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Update 09-testing.md
This commit is contained in:
@@ -86,9 +86,9 @@ it('stops sending if invoice has no email address', function () {
|
||||
});
|
||||
```
|
||||
|
||||
## Testing modals
|
||||
## Modal content
|
||||
|
||||
To assert against the content of a modal, you should first mount the action (rather than call it which resolves the modal). You can then use [livewire assertions](https://livewire.laravel.com/docs/testing#assertions) such as `assertSee` to assert the modal has rendered as you expect:
|
||||
To assert the content of a modal, you should first mount the action (rather than call it which closes the modal). You can then use [Livewire assertions](https://livewire.laravel.com/docs/testing#assertions) such as `assertSee()` to assert the modal contains the content that you expect it to:
|
||||
|
||||
```php
|
||||
use function Pest\Livewire\livewire;
|
||||
|
||||
Reference in New Issue
Block a user