From b0d0a7323c481cb9843fc5212e576b2ca48dd7fa Mon Sep 17 00:00:00 2001 From: Dan Harrin Date: Sat, 10 Aug 2024 14:24:50 +0300 Subject: [PATCH] Update 09-testing.md --- packages/actions/docs/09-testing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/actions/docs/09-testing.md b/packages/actions/docs/09-testing.md index 494598a674..4e7fd7366d 100644 --- a/packages/actions/docs/09-testing.md +++ b/packages/actions/docs/09-testing.md @@ -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;