diff --git a/lib/skipper/live_view_test.ex b/lib/skipper/live_view_test.ex index 62f898c..222d14c 100644 --- a/lib/skipper/live_view_test.ex +++ b/lib/skipper/live_view_test.ex @@ -74,13 +74,13 @@ defmodule Skipper.LiveViewTest do ############# # Assertions + @deprecated "The function assert_html/2 is deprecated. Use assert_visible/2 instead" def assert_html(session, expected) do - IO.warn("The function assert_html/2 is deprecated. Use assert_visible/2 instead") assert_visible(session, expected) end + @deprecated "The function refute_html/2 is deprecated. Use refute_visible/2 instead" def refute_html(session, expected) do - IO.warn("The function refute_html/2 is deprecated. Use refute_visible/2 instead") refute_visible(session, expected) end @@ -173,7 +173,7 @@ defmodule Skipper.LiveViewTest do def assert_path({conn, {:ok, view, html}}, path) do IO.warn(""" - Tests should avoid leaking details about the underlying framework.Lean + Tests should avoid leaking details about the underlying framework. Lean on asserting things about the page itself rather than LiveView-specific concepts like "patching". """)