test: fix failures
This commit is contained in:
parent
8f34d6a069
commit
eadc784bc3
4 changed files with 5 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue