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