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
Ha! I was being optimistic. While that Utils function is part of the problem, the assert_query_params/2 function in PhoenixTest.Assertions will need some work as well. It's leveraging URI, which does not handle query params arrays, at all, let alone how Phoenix creates them.
Thanks @idlehands! Yes, I think both the stringify_keys_and_values/1 and the usage of URI in assert_query_params/2 will have issues with lists in queries. But I agree this is something we should fix (honestly surprised we didn't think of it the first time around).
Thanks for planning on opening a PR! Let me know if I can help with anything.
When calling assert_path as like this on working code:
the assertion is erroring with the following error:
Looking further into it, it looks like
PhoenixTest.Utils.stringify_keys_and_values/1
is the culprit.I propose a fix where when the value of the query params is a list, it returns the params in the url array style.
After connecting with German over this, I plan to put in a PR to address this.
The text was updated successfully, but these errors were encountered: