diff --git a/config/config.exs b/config/config.exs index b20f26a..ed71f8c 100644 --- a/config/config.exs +++ b/config/config.exs @@ -28,6 +28,9 @@ config :chess, Chess.Auth.Guardian, issuer: "chess", secret_key: "vd2vXkrYTTFKSKmNMoS2/Hk4Fxn8BkyzsVArRkxJazdQ3mr6bI4YgAC6f8ODiWlM" +config :formulator, + translate_error_module: ChessWeb.ErrorHelpers + # Import environment specific config. This must remain at the bottom # of this file so it overrides the configuration defined above. import_config "#{Mix.env}.exs" diff --git a/test/features/registration_test.exs b/test/features/registration_test.exs index c50fe6b..ee2fac7 100644 --- a/test/features/registration_test.exs +++ b/test/features/registration_test.exs @@ -7,6 +7,7 @@ defmodule Chess.RegistrationTest do session |> visit("/") |> click(link("Register")) + |> fill_in(text_field("Name"), with: "Link") |> fill_in(text_field("Username"), with: "link@example.com") |> fill_in(text_field("Password"), with: "ilovezelda") |> click(button("Register"))