F
Filamentβ€’4w 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
disstoβ€’4w 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
shabxsβ€’4w ago
Right... Thanks...