LiveViewTest render_click() not patching a link

@jswanner ah, thanks for pointing that out, that makes sense. Yes, it’s 2 different liveviews. I’ve updated the test to use render_async(index_live) and the link to navigate={…} but the previous assertion now shows rendering the click caused a redirect?

  1) test Index updates branch in listing (MyAppWeb.Subdomain.BranchLiveTest)
     test/myapp_web/live/branch_live_test.exs:86
     ** (FunctionClauseError) no function clause matching in Kernel.=~/2

     The following arguments were given to Kernel.=~/2:
     
         # 1
         {:error, {:live_redirect, %{kind: :push, to: "/ar/branches/1/edit"}}}
     
         # 2
         "Edit"
     
     Attempted function clauses (showing 3 out of 3):
     
         def =~(left, "") when is_binary(left)
         def =~(left, right) when is_binary(left) and is_binary(right)
         def =~(left, right) when is_binary(left)
     
     code: |> render_click() =~ "Edit"