Skip to content
Snippets Groups Projects
Commit 85e063ad authored by Kerdo Kurs's avatar Kerdo Kurs
Browse files

minor changes for #11

parent ab0525a4
No related branches found
No related tags found
1 merge request!4Resolve "FR-01: Account registration"
Pipeline #43091 passed
......@@ -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
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
defmodule WhiteBreadConfig do
use WhiteBread.SuiteConfiguration
suite name: "All",
context: WhiteBreadContext,
feature_paths: ["features/"]
suite name: "User Registration Features",
context: UserRegistrationContext,
feature_paths: ["features/"]
......
......@@ -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 ->
......
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
......@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment