LiveView test fails with two views on page


I have a page containing two liveviews, when initializing the view with

{:ok, view, _html} =
        live(conn, Routes.some_path(conn, :show, resource),
          session: %{

The first view is returned judging by its html id (but with the module of the second one?). Running render_submit on it then fails since the second view is actually the form and is the intended target.

How does one get the second view on the page?

Using live_isolated seems to work, but it would be rather nice to have live return a list of liveviews on the page.