test: fix failures

This commit is contained in:
Ivan R. 2024-07-21 22:22:36 +05:00
parent 8f34d6a069
commit eadc784bc3
Signed by: lumin
GPG key ID: E0937DC7CD6D3817
4 changed files with 5 additions and 7 deletions

View file

@ -3,6 +3,6 @@ defmodule ComfycampWeb.PageControllerTest do
test "GET /", %{conn: conn} do
conn = get(conn, ~p"/")
assert html_response(conn, 200) =~ "Peace of mind from prototype to production"
assert html_response(conn, 200) =~ "Уютный домик"
end
end

View file

@ -20,7 +20,6 @@ defmodule ComfycampWeb.UserSessionControllerTest do
# Now do a logged in request and assert on the menu
conn = get(conn, ~p"/")
response = html_response(conn, 200)
assert response =~ user.email
assert response =~ ~p"/users/settings"
assert response =~ ~p"/users/log_out"
end

View file

@ -8,8 +8,8 @@ defmodule ComfycampWeb.UserLoginLiveTest do
test "renders log in page", %{conn: conn} do
{:ok, _lv, html} = live(conn, ~p"/users/log_in")
assert html =~ "Log in"
assert html =~ "Register"
assert html =~ "Войти"
assert html =~ "Зарегистрироваться"
assert html =~ "Forgot your password?"
end

View file

@ -50,9 +50,8 @@ defmodule ComfycampWeb.UserRegistrationLiveTest do
# Now do a logged in request and assert on the menu
conn = get(conn, "/")
response = html_response(conn, 200)
assert response =~ email
assert response =~ "Settings"
assert response =~ "Log out"
assert response =~ "Настройки"
assert response =~ "Выйти"
end
test "renders errors for duplicated email", %{conn: conn} do