Update test to be whitespace insensitive

This commit is contained in:
Liam 2024-05-04 15:58:42 -04:00
parent 79583e8b01
commit 4aab96c992
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 test "renders the confirmation page", %{conn: conn} do
conn = get(conn, ~p"/confirmations/new") conn = get(conn, ~p"/confirmations/new")
response = html_response(conn, 200) response = html_response(conn, 200)
assert response =~ "<h1>Resend confirmation instructions</h1>" assert response =~ "Resend confirmation instructions"
end end
end end

View file

@ -33,8 +33,8 @@ defmodule PhilomenaWeb.SessionControllerTest do
conn = get(conn, "/registrations/edit") conn = get(conn, "/registrations/edit")
response = html_response(conn, 200) response = html_response(conn, 200)
assert response =~ user.email assert response =~ user.email
assert response =~ "Settings</a>" assert response =~ "Settings"
assert response =~ "Logout</a>" assert response =~ "Logout"
end end
test "logs the user in with remember me", %{conn: conn, user: user} do 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 test "renders the unlock page", %{conn: conn} do
conn = get(conn, ~p"/unlocks/new") conn = get(conn, ~p"/unlocks/new")
response = html_response(conn, 200) response = html_response(conn, 200)
assert response =~ "<h1>Resend unlock instructions</h1>" assert response =~ "Resend unlock instructions"
end end
end end