F
Filament5mo ago
shabxs

Livewire pest plugin code replication

How can we get the same result using pest livewire plugin function Livewire::withQueryParams(['search' => 'hair']) ->test(SearchPosts::class) ->assertSee('Testing the first') ie livewire->(SearchPost::class)->assertSee('Testing the first') how do I use the query params in the second statement
Solution:
Probably as second param to livewire() ? 🤔 Something like: ```php...
Jump to solution
2 Replies
Solution
dissto
dissto5mo ago
Probably as second param to livewire() ? 🤔 Something like:
livewire(SearchPosts::class, ['search' => 'hair'])
->assertSee('Testing the first')
livewire(SearchPosts::class, ['search' => 'hair'])
->assertSee('Testing the first')
Or are you trying to have a test for the search ?
shabxs
shabxs5mo ago
Right... Thanks...
Want results from more Discord servers?
Add your server