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 716bfb4b12
commit c8864c5b3b

View File

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