fix liveview test
This commit is contained in:
parent
83325adf09
commit
15fddac27d
|
@ -1,7 +1,7 @@
|
||||||
defmodule PokemonCoutureWeb.ClothesTrackerLiveTest do
|
defmodule PokemonCoutureWeb.ClothesTrackerLiveTest do
|
||||||
# import Plug.Conn
|
import Plug.Conn
|
||||||
# use PokemonCoutureWeb.ConnCase
|
use PokemonCoutureWeb.ConnCase
|
||||||
# import Phoenix.LiveViewTest
|
import Phoenix.LiveViewTest
|
||||||
import PokemonCouture.AccountsFixtures
|
import PokemonCouture.AccountsFixtures
|
||||||
@endpoint PokemonCoutureWeb.Endpoint
|
@endpoint PokemonCoutureWeb.Endpoint
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ defmodule PokemonCoutureWeb.ClothesTrackerLiveTest do
|
||||||
|
|
||||||
test "logged in user sees page", %{conn: conn} do
|
test "logged in user sees page", %{conn: conn} do
|
||||||
conn = conn |> log_in_user(user_fixture())
|
conn = conn |> log_in_user(user_fixture())
|
||||||
{:ok, view, html} = live(conn, "/tracker")
|
{:ok, _view, html} = live(conn, "/tracker")
|
||||||
assert html =~ "Listing Clothes"
|
assert html =~ "Listing Clothes"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue