Add PhoenixTest case
This commit is contained in:
14
test/mihainator_web/upload_live_test.exs
Normal file
14
test/mihainator_web/upload_live_test.exs
Normal file
@@ -0,0 +1,14 @@
|
||||
defmodule MihainatorWeb.UploadLiveTest do
|
||||
@moduledoc false
|
||||
|
||||
use MihainatorWeb.ConnCase
|
||||
|
||||
test "calender has markings for interaction days", %{conn: conn} do
|
||||
conn
|
||||
|> visit("/")
|
||||
|> upload("CSV file", "data/test.csv")
|
||||
|> click_button("Upload")
|
||||
|> assert_has("button.bg-green-300")
|
||||
|> assert_has("button.bg-red-300")
|
||||
end
|
||||
end
|
||||
@@ -28,6 +28,7 @@ defmodule MihainatorWeb.ConnCase do
|
||||
import Plug.Conn
|
||||
import Phoenix.ConnTest
|
||||
import MihainatorWeb.ConnCase
|
||||
import PhoenixTest
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user