Does it okay if I never use mix test?
I am currently developing app but never try to use mix test, because some of code I made custom in lib folder, sometime when i try make account like mix phx.gen.auth Accounts User users, i try to made custom in the code. but when try make mix test some failure comes in like below :
1) test confirm email does not update email with invalid token (TrainWeb.UserSettingsLiveTest)
test/train_web/live/user_settings_live_test.exs:192
match (=) failed
code: assert {:live_redirect, %{to: path, flash: flash}} = redirect
left: {:live_redirect, %{flash: flash, to: path}}
right: {
:redirect,
%{
flash: %{"error" => "You must activated via link activation that send it into your mail to access this page."},
to: "/users/log_in"
}
}
stacktrace:
test/train_web/live/user_settings_live_test.exs:194: (test)
2) test update email form renders errors with invalid data (phx-submit) (TrainWeb.UserSettingsLiveTest)
test/train_web/live/user_settings_live_test.exs:68
** (MatchError) no match of right hand side value: {:error, {:redirect, %{to: "/users/log_in", flash: %{"error" => "You must activated via link activation that send it into your mail to access this page."}}}}
code: {:ok, lv, _html} = live(conn, ~p"/users/settings")
stacktrace:
test/train_web/live/user_settings_live_test.exs:69: (test)
3) test Settings page renders settings page (TrainWeb.UserSettingsLiveTest)
test/train_web/live/user_settings_live_test.exs:9
** (MatchError) no match of right hand side value: {:error, {:redirect, %{to: "/users/log_in", flash: %{"error" => "You must activated via link activation that send it into your mail to access this page."}}}}
code: {:ok, _lv, html} =
stacktrace:
test/train_web/live/user_settings_live_test.exs:10: (test)
.
4) test update email form updates the user email (TrainWeb.UserSettingsLiveTest)
test/train_web/live/user_settings_live_test.exs:35
** (MatchError) no match of right hand side value: {:error, {:redirect, %{to: "/users/log_in", flash: %{"error" => "You must activated via link activation that send it into your mail to access this page."}}}}
code: {:ok, lv, _html} = live(conn, ~p"/users/settings")
stacktrace:
test/train_web/live/user_settings_live_test.exs:38: (test)
.
5) test update email form renders errors with invalid data (phx-change) (TrainWeb.UserSettingsLiveTest)
test/train_web/live/user_settings_live_test.exs:52
** (MatchError) no match of right hand side value: {:error, {:redirect, %{to: "/users/log_in", flash: %{"error" => "You must activated via link activation that send it into your mail to access this page."}}}}
code: {:ok, lv, _html} = live(conn, ~p"/users/settings")
stacktrace:
test/train_web/live/user_settings_live_test.exs:53: (test)
...
6) test update password form renders errors with invalid data (phx-change) (TrainWeb.UserSettingsLiveTest)
test/train_web/live/user_settings_live_test.exs:121
** (MatchError) no match of right hand side value: {:error, {:redirect, %{to: "/users/log_in", flash: %{"error" => "You must activated via link activation that send it into your mail to access this page."}}}}
code: {:ok, lv, _html} = live(conn, ~p"/users/settings")
stacktrace:
test/train_web/live/user_settings_live_test.exs:122: (test)
.
7) test confirm email updates the user email once (TrainWeb.UserSettingsLiveTest)
test/train_web/live/user_settings_live_test.exs:174
match (=) failed
code: assert {:live_redirect, %{to: path, flash: flash}} = redirect
left: {:live_redirect, %{flash: flash, to: path}}
right: {
:redirect,
%{
flash: %{"error" => "You must activated via link activation that send it into your mail to access this page."},
to: "/users/log_in"
}
}
stacktrace:
test/train_web/live/user_settings_live_test.exs:177: (test)
...
8) test update password form renders errors with invalid data (phx-submit) (TrainWeb.UserSettingsLiveTest)
test/train_web/live/user_settings_live_test.exs:140
** (MatchError) no match of right hand side value: {:error, {:redirect, %{to: "/users/log_in", flash: %{"error" => "You must activated via link activation that send it into your mail to access this page."}}}}
code: {:ok, lv, _html} = live(conn, ~p"/users/settings")
stacktrace:
test/train_web/live/user_settings_live_test.exs:141: (test)
.
9) test update password form updates the user password (TrainWeb.UserSettingsLiveTest)
test/train_web/live/user_settings_live_test.exs:92
** (MatchError) no match of right hand side value: {:error, {:redirect, %{to: "/users/log_in", flash: %{"error" => "You must activated via link activation that send it into your mail to access this page."}}}}
code: {:ok, lv, _html} = live(conn, ~p"/users/settings")
stacktrace:
test/train_web/live/user_settings_live_test.exs:95: (test)






















