To retain the ability to match on html instead of a selector, you can use a helper function like this:
def assert_html(session, text) do
assert render(session.view) =~ text
session
end
I think this should probably just be added in as it's own function in the Assertions module.
To retain the ability to match on html instead of a selector, you can use a helper function like this:
I think this should probably just be added in as it's own function in the Assertions module.