Phoenix.LiveViewTest.render
You're seeing just the function
render
, go back to Phoenix.LiveViewTest module for more information.
Returns the HTML string of the rendered view or element.
If a view is provided, the entire LiveView is rendered. If an element is provided, only that element is rendered.
Examples
{:ok, view, _html} = live(conn, "/thermo")
assert render(view) =~ ~s|<button id="alarm">Snooze</div>|
assert view
|> element("#alarm")
|> render() == "Snooze"