reactivate commented out tests, explicitly skip them using @describetag skip: ...
This commit is contained in:
parent
c7d3b54723
commit
b60df576a7
3 changed files with 26 additions and 26 deletions
|
|
@ -57,11 +57,12 @@ defmodule ScopesWeb.UserLoginLiveTest do
|
|||
end
|
||||
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} =
|
||||
_ = """
|
||||
describe "login navigation" do
|
||||
@describetag skip: "Error because of LiveView flash"
|
||||
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()
|
||||
|
|
@ -69,11 +70,11 @@ _ = """
|
|||
|
||||
assert login_html =~ "Register"
|
||||
end
|
||||
"""
|
||||
# test "redirects to forgot password page when the Forgot Password button is clicked", %{conn: conn} do
|
||||
# {:ok, lv, _html} = live(conn, ~p"/users/log_in")
|
||||
# {:ok, conn} =
|
||||
_ = """
|
||||
|
||||
test "redirects to forgot password page when the Forgot Password button is clicked", %{conn: conn} do
|
||||
{:ok, lv, _html} = live(conn, ~p"/users/log_in")
|
||||
|
||||
{:ok, conn} =
|
||||
lv
|
||||
|> element(~s|main a:fl-contains("Forgot your password?")|)
|
||||
|> render_click()
|
||||
|
|
@ -82,5 +83,4 @@ _ = """
|
|||
assert conn.resp_body =~ "Forgot your password?"
|
||||
end
|
||||
end
|
||||
"""
|
||||
end
|
||||
|
|
|
|||
|
|
@ -71,9 +71,11 @@ defmodule ScopesWeb.UserRegistrationLiveTest do
|
|||
end
|
||||
end
|
||||
|
||||
# describe "registration navigation" do
|
||||
# test "redirects to login page when the Log in button is clicked", %{conn: conn} do {:ok, lv, _html} = live(conn, ~p"/users/register")
|
||||
"""
|
||||
describe "registration navigation" do
|
||||
@describetag skip: "Error because of LiveView flash"
|
||||
test "redirects to login page when the Log in button is clicked", %{conn: conn} do
|
||||
{:ok, lv, _html} = live(conn, ~p"/users/register")
|
||||
|
||||
{:ok, _login_live, login_html} =
|
||||
lv
|
||||
|> element(~s|main a:fl-contains("Log in")|)
|
||||
|
|
@ -83,5 +85,4 @@ defmodule ScopesWeb.UserRegistrationLiveTest do
|
|||
assert login_html =~ "Log in"
|
||||
end
|
||||
end
|
||||
"""
|
||||
end
|
||||
|
|
|
|||
|
|
@ -87,11 +87,12 @@ defmodule ScopesWeb.UserResetPasswordLiveTest do
|
|||
end
|
||||
end
|
||||
|
||||
# describe "Reset password navigation" do
|
||||
# test "redirects to login page when the Log in button is clicked", %{conn: conn, token: token} do
|
||||
# {:ok, lv, _html} = live(conn, ~p"/users/reset_password/#{token}")
|
||||
# {:ok, conn} =
|
||||
_ = """
|
||||
describe "Reset password navigation" do
|
||||
@describetag skip: "Error because of LiveView flash"
|
||||
test "redirects to login page when the Log in button is clicked", %{conn: conn, token: token} do
|
||||
{:ok, lv, _html} = live(conn, ~p"/users/reset_password/#{token}")
|
||||
|
||||
{:ok, conn} =
|
||||
lv
|
||||
|> element(~s|main a:fl-contains("Log in")|)
|
||||
|> render_click()
|
||||
|
|
@ -99,11 +100,10 @@ _ = """
|
|||
|
||||
assert conn.resp_body =~ "Log in"
|
||||
end
|
||||
"""
|
||||
# test "redirects to registration page when the Register button is clicked", %{ conn: conn, token: token } do
|
||||
# {:ok, lv, _html} = live(conn, ~p"/users/reset_password/#{token}")
|
||||
# {:ok, conn} =
|
||||
_ = """
|
||||
|
||||
test "redirects to registration page when the Register button is clicked", %{ conn: conn, token: token } do
|
||||
{:ok, lv, _html} = live(conn, ~p"/users/reset_password/#{token}")
|
||||
{:ok, conn} =
|
||||
lv
|
||||
|> element(~s|main a:fl-contains("Register")|)
|
||||
|> render_click()
|
||||
|
|
@ -112,5 +112,4 @@ _ = """
|
|||
assert conn.resp_body =~ "Register"
|
||||
end
|
||||
end
|
||||
"""
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue