Hi, I have a classic delete link with confirmation in my liveview
<%= link "Delete", to: "#", phx_click: "delete", phx_value_classid: class.id, data: [confirm: "Are you sure?"] %>
and this is the test
assert index_live |> element("#class-#{class.id} a", "Delete") |> render_click()
refute has_element?(index_live, "#class-#{class.id}")
the refute test fails. I assume it’s because there’s the additional confirmation dialog where user needs to click OK? If so, how do I add that action into my test, please? This si a browser dialog, so it doesn’t seem to be possible to target it as html element.