I’m not proficient with live_view, may be there is way to achieve that, but in one project in tests I was using follow_redirect(live, conn, route) and then asserting on some results in there (like the existence of new “flash” message).
Surely without knowing the :id that’s not the case in this scenario…
However, how is that id generated? can’t we either “bypass” that id with some dummy value in the test or reuse the same helper that generates the id?
** (MatchError) no match of right hand side value: {:error, {:live_redirect, %{flash: "flash", kind: :push, to: "/xxx/123/edit"}}}
code: |> assert_redirect()
I don’t quite understand where is the left hand side of the assertion…