Fix unit tests
All checks were successful
builds.sr.ht Job completed

This commit is contained in:
2024-01-08 01:00:14 +00:00
parent 6c3cc84f7a
commit cacab2541d
9 changed files with 81 additions and 83 deletions

View File

@@ -9,7 +9,6 @@ defmodule WishWeb.UserLoginLiveTest do
{:ok, _lv, html} = live(conn, ~p"/users/log_in")
assert html =~ "Log in"
assert html =~ "Register"
assert html =~ "Forgot your password?"
end
@@ -58,18 +57,6 @@ defmodule WishWeb.UserLoginLiveTest do
end
describe "login navigation" do
test "redirects to registration page when the Register button is clicked", %{conn: conn} do
{:ok, lv, _html} = live(conn, ~p"/users/log_in")
{:ok, _login_live, login_html} =
lv
|> element(~s|main a:fl-contains("Sign up")|)
|> render_click()
|> follow_redirect(conn, ~p"/users/register")
assert login_html =~ "Register"
end
test "redirects to forgot password page when the Forgot Password button is clicked", %{
conn: conn
} do