You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sort query params in verified routes during tests (#6536)
By having the query parameters being serialized in order (during tests only)
when using VerifiedRoutes, we can make some test assertions, like e.g.
`assert_redirect/3` from Phoenix.Liveview, less brittle when the query params
are constructed dynamically in the backend and it's not easy to predict /
maintain exact query param order in tested urls.
This behaviour will be enabled in newly generated apps by default. For existing
apps, add the following to `confing/test.exs`
```elixir
config :phoenix,
sort_verified_routes_query_params: true
```
0 commit comments