TestDispatch.submit_with_button
You're seeing just the function
submit_with_button
, go back to TestDispatch module for more information.
Specs
submit_with_button(Plug.Conn.t(), %{}, binary()) :: Plug.Conn.t()
Works like submit_form/3
but instead of an entity or test_selector it uses
the text of the button to match on the third argument.
Examples
iex> submit_with_button(conn, %{answer_option: "elixir"}, "Finish Quiz")
%Plug.Conn{params: %{"answer_option" => "elixir"})