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