Commit
•
feb06e2
1
Parent(s):
138c8ae
test: Add TODO comments to HomeLive test
Browse files
test/medical_transcription_web/live/home_live_test.exs
CHANGED
@@ -7,6 +7,12 @@ defmodule MedicalTranscriptionWeb.HomeLiveTest do
|
|
7 |
|
8 |
describe "/" do
|
9 |
test "renders upload screen", %{conn: conn} do
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
# TODO: Ensure that we're testing both the non-live and live versions here.
|
11 |
conn = get(conn, "/")
|
12 |
assert html_response(conn, 200) =~ "Medical Code Transcriber"
|
@@ -43,19 +49,9 @@ defmodule MedicalTranscriptionWeb.HomeLiveTest do
|
|
43 |
|> form("#audio-form")
|
44 |
|> render_submit() =~ "Summary Keywords"
|
45 |
|
|
|
|
|
46 |
# assert render_async(view, 5_000) =~ "Coronary artery anomaly"
|
47 |
-
|
48 |
-
# |> render_async() =~ "Hello"
|
49 |
-
|
50 |
-
# |> render_submit() =~ "Submitted: sample.mp3"
|
51 |
-
|
52 |
-
# assert render_upload(audio, "sample.mp3") |> dbg() =~ "100%"
|
53 |
-
|
54 |
-
# 1. Find file input
|
55 |
-
# 2. Upload file
|
56 |
-
# 3. Click submit
|
57 |
-
# 4. Assert we see text
|
58 |
-
# 5. Assert we see codes alongside text
|
59 |
end
|
60 |
end
|
61 |
end
|
|
|
7 |
|
8 |
describe "/" do
|
9 |
test "renders upload screen", %{conn: conn} do
|
10 |
+
# 1. Find file input
|
11 |
+
# 2. Upload file
|
12 |
+
# 3. Click submit
|
13 |
+
# 4. Assert we see text
|
14 |
+
# 5. Assert we see codes alongside text
|
15 |
+
|
16 |
# TODO: Ensure that we're testing both the non-live and live versions here.
|
17 |
conn = get(conn, "/")
|
18 |
assert html_response(conn, 200) =~ "Medical Code Transcriber"
|
|
|
49 |
|> form("#audio-form")
|
50 |
|> render_submit() =~ "Summary Keywords"
|
51 |
|
52 |
+
# TODO: Test that transcribed text appears
|
53 |
+
# TODO: Test that codes appear
|
54 |
# assert render_async(view, 5_000) =~ "Coronary artery anomaly"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
end
|
56 |
end
|
57 |
end
|