diff --git a/config/test.exs b/config/test.exs index 392ca3db30b72e58402905c2d80ed9cde73cd231..922b66cdc16944d8fcaa788d116ab0eda83181f9 100644 --- a/config/test.exs +++ b/config/test.exs @@ -37,5 +37,5 @@ config :phoenix_live_view, enable_expensive_runtime_checks: true -config :hound, driver: "chrome_driver", port: 54833 +config :hound, driver: "chrome_driver", port: 9999 config :proptrackr, sql_sandbox: true diff --git a/features/accessing_root.feature b/features/accessing_root.feature deleted file mode 100644 index af39a29910f5ae97de2b28dedd9ac0f766435f26..0000000000000000000000000000000000000000 --- a/features/accessing_root.feature +++ /dev/null @@ -1,8 +0,0 @@ -Feature: Homepage Access - As a website visitor - Such that I can see the website is working - I want to access the homepage - - Scenario: Visiting the homepage - When I visit the homepage - Then I should see the welcome message diff --git a/features/config.exs b/features/config.exs index 4318663677ee01a75123bbaea3a9bb1da5f6401b..3f4b67c3ddaf3a2d8d7c7c797c2fc6225944c36d 100644 --- a/features/config.exs +++ b/features/config.exs @@ -1,10 +1,6 @@ defmodule WhiteBreadConfig do use WhiteBread.SuiteConfiguration - suite name: "All", - context: WhiteBreadContext, - feature_paths: ["features/"] - suite name: "User Registration Features", context: UserRegistrationContext, feature_paths: ["features/"] diff --git a/features/contexts/user_registration_context.exs b/features/contexts/user_registration_context.exs index 51768369c9d6b79b6493bcf8d5a43bd99fe6ee24..8690d42106cbeea6c095bdba66a1139cef96b25d 100644 --- a/features/contexts/user_registration_context.exs +++ b/features/contexts/user_registration_context.exs @@ -19,7 +19,7 @@ defmodule UserRegistrationContext do scenario_finalize fn _status, _state -> Ecto.Adapters.SQL.Sandbox.checkin(PropTrackr.Repo) - # Hound.end_session() + Hound.end_session() end given_ ~r/^I am on the registration page$/, fn state -> diff --git a/features/contexts/white_bread_context.exs b/features/contexts/white_bread_context.exs deleted file mode 100644 index fb83546020faa5d627a25fd381b34aff79b50260..0000000000000000000000000000000000000000 --- a/features/contexts/white_bread_context.exs +++ /dev/null @@ -1,28 +0,0 @@ -defmodule WhiteBreadContext do - use WhiteBread.Context - use Hound.Helpers - - feature_starting_state fn -> - Application.ensure_all_started(:hound) - %{} - end - - scenario_starting_state fn _state -> - Hound.start_session - %{} - end - - scenario_finalize fn _status, _state -> - Hound.end_session - end - - when_ ~r/^I visit the homepage$/, fn state -> - navigate_to "/" - {:ok, state} - end - - then_ ~r/^I should see the welcome message$/, fn state -> - assert visible_in_page? ~r/Peace of mind from prototype to production./ - {:ok, state} - end -end diff --git a/lib/proptrackr_web/controllers/register_html/index.html.heex b/lib/proptrackr_web/controllers/register_html/index.html.heex index 23844d03af11cba9104439ce39a6e997e0d2f906..dacc5cea8eddb341ba94d9d5ea9971a2612395a2 100644 --- a/lib/proptrackr_web/controllers/register_html/index.html.heex +++ b/lib/proptrackr_web/controllers/register_html/index.html.heex @@ -12,11 +12,12 @@ <.input field={f[:phone_number]} type="text" label="Phone number" /> <.input field={f[:bio]} type="text" label="Bio" /> <.input field={f[:email]} type="text" label="Email" /> - <.input field={f[:password]} type="text" label="Password" /> - <.input field={f[:confirm_password]} type="text" label="Confirm password" /> + <.input field={f[:password]} type="password" label="Password" /> + <.input field={f[:confirm_password]} type="password" label="Confirm password" /> <:actions> <.button id="register_button">Register</.button> </:actions> </.simple_form> -<.back navigate={~p"/users"}>Already have account</.back> \ No newline at end of file +<.back navigate={~p"/users"}>Already have account</.back> +