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
|
test "GET /", %{conn: conn} do
|
||||||
conn = get(conn, ~p"/")
|
conn = get(conn, ~p"/")
|
||||||
assert html_response(conn, 200) =~ "Peace of mind from prototype to production"
|
assert html_response(conn, 200) =~ "Уютный домик"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -20,7 +20,6 @@ defmodule ComfycampWeb.UserSessionControllerTest do
|
||||||
# Now do a logged in request and assert on the menu
|
# Now do a logged in request and assert on the menu
|
||||||
conn = get(conn, ~p"/")
|
conn = get(conn, ~p"/")
|
||||||
response = html_response(conn, 200)
|
response = html_response(conn, 200)
|
||||||
assert response =~ user.email
|
|
||||||
assert response =~ ~p"/users/settings"
|
assert response =~ ~p"/users/settings"
|
||||||
assert response =~ ~p"/users/log_out"
|
assert response =~ ~p"/users/log_out"
|
||||||
end
|
end
|
||||||
|
|
|
@ -8,8 +8,8 @@ defmodule ComfycampWeb.UserLoginLiveTest do
|
||||||
test "renders log in page", %{conn: conn} do
|
test "renders log in page", %{conn: conn} do
|
||||||
{:ok, _lv, html} = live(conn, ~p"/users/log_in")
|
{:ok, _lv, html} = live(conn, ~p"/users/log_in")
|
||||||
|
|
||||||
assert html =~ "Log in"
|
assert html =~ "Войти"
|
||||||
assert html =~ "Register"
|
assert html =~ "Зарегистрироваться"
|
||||||
assert html =~ "Forgot your password?"
|
assert html =~ "Forgot your password?"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -50,9 +50,8 @@ defmodule ComfycampWeb.UserRegistrationLiveTest do
|
||||||
# Now do a logged in request and assert on the menu
|
# Now do a logged in request and assert on the menu
|
||||||
conn = get(conn, "/")
|
conn = get(conn, "/")
|
||||||
response = html_response(conn, 200)
|
response = html_response(conn, 200)
|
||||||
assert response =~ email
|
assert response =~ "Настройки"
|
||||||
assert response =~ "Settings"
|
assert response =~ "Выйти"
|
||||||
assert response =~ "Log out"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
test "renders errors for duplicated email", %{conn: conn} do
|
test "renders errors for duplicated email", %{conn: conn} do
|
||||||
|
|
Loading…
Reference in a new issue