Skip to content

Commit

Permalink
fix toast test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarnsley committed Jun 13, 2024
1 parent 8fa22e6 commit 71a8577
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/UserInterface/Livewire/ToastTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@

it('can_see_a_toast', function () {
Livewire::test(Toast::class)
->dispatch('toastMessage', [
'message' => 'Hello',
'type' => 'info',
])
->dispatch('toastMessage', 'Hello', 'info')
->assertSee('Hello') // body
->assertSee('button') // close button
->assertSee('span'); // icon
Expand Down

0 comments on commit 71a8577

Please sign in to comment.