update heading for testing modals

This commit is contained in:
Brent Kelly
2024-08-09 11:29:11 +12:00
parent ea4c093c6f
commit b26651e337
+1 -1
View File
@@ -86,7 +86,7 @@ it('stops sending if invoice has no email address', function () {
});
```
## Testing modal content
## Testing modals
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: