Update test to be whitespace insensitive

This commit is contained in:
Liam 2024-05-04 15:58:42 -04:00
parent 8be066a7fe
commit 6569efcdbe
3 changed files with 4 additions and 4 deletions

View file

@ -14,7 +14,7 @@ defmodule PhilomenaWeb.ConfirmationControllerTest do
test "renders the confirmation page", %{conn: conn} do
conn = get(conn, ~p"/confirmations/new")
response = html_response(conn, 200)
assert response =~ "<h1>Resend confirmation instructions</h1>"
assert response =~ "Resend confirmation instructions"
end
end

View file

@ -33,8 +33,8 @@ defmodule PhilomenaWeb.SessionControllerTest do
conn = get(conn, "/registrations/edit")
response = html_response(conn, 200)
assert response =~ user.email
assert response =~ "Settings</a>"
assert response =~ "Logout</a>"
assert response =~ "Settings"
assert response =~ "Logout"
end
test "logs the user in with remember me", %{conn: conn, user: user} do

View file

@ -14,7 +14,7 @@ defmodule PhilomenaWeb.UnlockControllerTest do
test "renders the unlock page", %{conn: conn} do
conn = get(conn, ~p"/unlocks/new")
response = html_response(conn, 200)
assert response =~ "<h1>Resend unlock instructions</h1>"
assert response =~ "Resend unlock instructions"
end
end