Is there a way to test a liveview patch to a url with query parameters?
If the url is w/o query params, then I can do it with assert_patch(live, ~p"/companies/#{company}/edit"
But if the url has query parameters (like /companies/123/edit?sort_dir=asc ) assert_patch cannot be used.
As long as it’s a map, you can still pass it in. Or do you want to assert that the live_patch is called with a specific route, but containing any query_params?
In that case, assert_patch is actually assert_navigation under the hood, which actually just waits for messages like assert_recieve would
So, again, operating blindly here, but based on code in