Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/skipper/live_view_test.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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".
""")
Expand Down