Add PhoenixTest case

This commit is contained in:
2024-11-03 13:44:51 +01:00
parent a9e2ca5cf6
commit fcc9058654
5 changed files with 19 additions and 0 deletions

View 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