Add Styler
This commit is contained in:
@@ -55,9 +55,7 @@ defmodule TradexWeb.UserConfirmationLiveTest do
|
||||
"User confirmation link is invalid or it has expired"
|
||||
|
||||
# when logged in
|
||||
conn =
|
||||
build_conn()
|
||||
|> log_in_user(user)
|
||||
conn = log_in_user(build_conn(), user)
|
||||
|
||||
{:ok, lv, _html} = live(conn, ~p"/users/confirm/#{token}")
|
||||
|
||||
|
@@ -45,9 +45,7 @@ defmodule TradexWeb.UserLoginLiveTest do
|
||||
{:ok, lv, _html} = live(conn, ~p"/users/log_in")
|
||||
|
||||
form =
|
||||
form(lv, "#login_form",
|
||||
user: %{email: "test@email.com", password: "123456", remember_me: true}
|
||||
)
|
||||
form(lv, "#login_form", user: %{email: "test@email.com", password: "123456", remember_me: true})
|
||||
|
||||
conn = submit_form(form, conn)
|
||||
|
||||
|
@@ -39,9 +39,7 @@ defmodule TradexWeb.UserResetPasswordLiveTest do
|
||||
result =
|
||||
lv
|
||||
|> element("#reset_password_form")
|
||||
|> render_change(
|
||||
user: %{"password" => "secret12", "password_confirmation" => "secret123456"}
|
||||
)
|
||||
|> render_change(user: %{"password" => "secret12", "password_confirmation" => "secret123456"})
|
||||
|
||||
assert result =~ "should be at least 12 character"
|
||||
assert result =~ "does not match password"
|
||||
|
@@ -1,10 +1,11 @@
|
||||
defmodule TradexWeb.UserSettingsLiveTest do
|
||||
use TradexWeb.ConnCase, async: true
|
||||
|
||||
alias Tradex.Accounts
|
||||
import Phoenix.LiveViewTest
|
||||
import Tradex.AccountsFixtures
|
||||
|
||||
alias Tradex.Accounts
|
||||
|
||||
describe "Settings page" do
|
||||
test "renders settings page", %{conn: conn} do
|
||||
{:ok, _lv, html} =
|
||||
|
Reference in New Issue
Block a user