diff --git a/test/comfycamp_web/controllers/page_controller_test.exs b/test/comfycamp_web/controllers/page_controller_test.exs index ca7658f..ff1f015 100644 --- a/test/comfycamp_web/controllers/page_controller_test.exs +++ b/test/comfycamp_web/controllers/page_controller_test.exs @@ -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 diff --git a/test/comfycamp_web/controllers/user_session_controller_test.exs b/test/comfycamp_web/controllers/user_session_controller_test.exs index 6b24c2c..0d8a811 100644 --- a/test/comfycamp_web/controllers/user_session_controller_test.exs +++ b/test/comfycamp_web/controllers/user_session_controller_test.exs @@ -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 diff --git a/test/comfycamp_web/live/user_login_live_test.exs b/test/comfycamp_web/live/user_login_live_test.exs index 46e11a3..aed5fe8 100644 --- a/test/comfycamp_web/live/user_login_live_test.exs +++ b/test/comfycamp_web/live/user_login_live_test.exs @@ -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 diff --git a/test/comfycamp_web/live/user_registration_live_test.exs b/test/comfycamp_web/live/user_registration_live_test.exs index e11d376..c14298e 100644 --- a/test/comfycamp_web/live/user_registration_live_test.exs +++ b/test/comfycamp_web/live/user_registration_live_test.exs @@ -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