Phoenix.LiveViewTest.live_children

You're seeing just the function live_children, go back to Phoenix.LiveViewTest module for more information.

Returns the current list of LiveView children for the parent LiveView.

Children are returned in the order they appear in the rendered HTML.

Examples

{:ok, view, _html} = live(conn, "/thermo")
assert [clock_view] = live_children(view)
assert render_click(clock_view, :snooze) =~ "snoozing"