fixed test - clicking on line instead of parts in svg

This commit is contained in:
Willem van den Ende 2026-07-07 13:33:50 +01:00
parent a1d1107129
commit 63ae78129f

View File

@ -90,9 +90,9 @@ defmodule FirehoseWeb.MicroprintsLiveTest do
assert html =~ ~s(phx-value-path="#{file_a}")
assert html =~ "Collapse"
# Highlight a line in file B via direct event (avoids brittle DOM selector)
view
|> render_click("highlight_line", %{"line" => "1", "path" => file_b})
# Highlight a line in file B by dispatching the highlight_line event
# (microprint renders multiple rect segments per line, element() can't pick one)
render_click(view, "highlight_line", %{"line" => "1", "path" => file_b})
# file A should be collapsed when highlighting a different file
html = render(view)