mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
Fix registration test
This commit is contained in:
parent
7cec3fb1a9
commit
4bf4c4cb45
@ -28,6 +28,9 @@ config :chess, Chess.Auth.Guardian,
|
|||||||
issuer: "chess",
|
issuer: "chess",
|
||||||
secret_key: "vd2vXkrYTTFKSKmNMoS2/Hk4Fxn8BkyzsVArRkxJazdQ3mr6bI4YgAC6f8ODiWlM"
|
secret_key: "vd2vXkrYTTFKSKmNMoS2/Hk4Fxn8BkyzsVArRkxJazdQ3mr6bI4YgAC6f8ODiWlM"
|
||||||
|
|
||||||
|
config :formulator,
|
||||||
|
translate_error_module: ChessWeb.ErrorHelpers
|
||||||
|
|
||||||
# Import environment specific config. This must remain at the bottom
|
# Import environment specific config. This must remain at the bottom
|
||||||
# of this file so it overrides the configuration defined above.
|
# of this file so it overrides the configuration defined above.
|
||||||
import_config "#{Mix.env}.exs"
|
import_config "#{Mix.env}.exs"
|
||||||
|
|||||||
@ -7,6 +7,7 @@ defmodule Chess.RegistrationTest do
|
|||||||
session
|
session
|
||||||
|> visit("/")
|
|> visit("/")
|
||||||
|> click(link("Register"))
|
|> click(link("Register"))
|
||||||
|
|> fill_in(text_field("Name"), with: "Link")
|
||||||
|> fill_in(text_field("Username"), with: "link@example.com")
|
|> fill_in(text_field("Username"), with: "link@example.com")
|
||||||
|> fill_in(text_field("Password"), with: "ilovezelda")
|
|> fill_in(text_field("Password"), with: "ilovezelda")
|
||||||
|> click(button("Register"))
|
|> click(button("Register"))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user