1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00

Fix registration test

This commit is contained in:
Daniel Barber 2018-03-02 21:17:42 -05:00
parent 7cec3fb1a9
commit 4bf4c4cb45
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
2 changed files with 4 additions and 0 deletions

View File

@ -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"

View File

@ -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"))