fixed test - clicking on line instead of parts in svg
This commit is contained in:
parent
a1d1107129
commit
63ae78129f
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user