From 4bf4c4cb45edb9307db94ca3b5855c89d54bd16e Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Fri, 2 Mar 2018 21:17:42 -0500 Subject: [PATCH] Fix registration test --- config/config.exs | 3 +++ test/features/registration_test.exs | 1 + 2 files changed, 4 insertions(+) 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"))