Skip to content

Commit

Permalink
small fixes for outline-live-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicbites committed Nov 23, 2024
1 parent b5fe774 commit e195828
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/radiator_web/live/outline_live_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,10 @@ defmodule RadiatorWeb.OutlineLiveTest do

keep_liveview_alive()

node_2_1_uuid = node_2_1.uuid
assert_push_event(live, "move_nodes", %{nodes: nodes})
assert_push_event(live, "focus_node", %{uuid: ^node_2_1_uuid})

assert_push_event(other_live, "move_nodes", %{nodes: other_nodes})

node_map = nodes |> Enum.map(fn node -> {node.uuid, node} end) |> Map.new()
Expand All @@ -324,7 +327,7 @@ defmodule RadiatorWeb.OutlineLiveTest do
assert other_nodes == nodes
end

test "delete node by merging with prev", %{
test "merge with prev node", %{
conn: conn,
url: url,
stream_id: stream_id,
Expand Down Expand Up @@ -359,7 +362,7 @@ defmodule RadiatorWeb.OutlineLiveTest do
assert other_live |> has_element?("#nodes-form-#{node_1.uuid}")
end

test "delete node by merging with next", %{
test "merging with next node", %{
conn: conn,
url: url,
stream_id: stream_id,
Expand Down

0 comments on commit e195828

Please sign in to comment.