From 59aab0c781d4c43cb885945f5fb4f54651ce56b8 Mon Sep 17 00:00:00 2001 From: Jay Hayes Date: Mon, 18 Mar 2024 09:45:54 -0500 Subject: [PATCH] wip [ci skip] --- lib/skipper/live_view_test.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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". """)