Skip to content

Conversation

@idabmat
Copy link

@idabmat idabmat commented Apr 29, 2025

I haven't dug too deep into #209 but I wanted to contribute some failing tests to exhibit the behaviour. I hope this helps clarify the issue. Or am I holding phoenix_test wrong?

It might also be worth adding that an equivalent LV test works:

test "click link", %{conn: conn} do
  {:ok, view, _} = live(conn, "/live/handle_info")

  view
  |> element("a", "Redirect")
  |> render_click()

  assert_redirect(view, "/live/index")
end

conn
|> visit("/live/handle_info")
|> click_link("Patch")
|> assert_path("/live/info_handled")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surprisingly (to me) this test is passing, while it is failing in my app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant