Currently working on a project using Hotwire. Turbo.js expects the redirects to have a status of 303.
Phoenix.ConnTest.redirected_to/2
allows setting the expected status with a default of 302 for the status.
Phoenix.ConnTest.redirected_params/1
internally calls redirected_to
with the default response status.
This causes all tests with redirects that have a 303 status to fail.
Already written my own helper function, however I was wondering since redirected_to
already supports setting status code, why does redirected_params
not support this?