-
Tried to follow installation instructions, but the app won't start:
Using elixir 1.12.1, erlang 24.0.1, chromedriver: 91.0.4472.101 FWIW, I cloned the Here are my changes: diff --git a/config/test.exs b/config/test.exs
index 4ff089e2..ade899ae 100644
--- a/config/test.exs
+++ b/config/test.exs
@@ -5,7 +5,9 @@ use Mix.Config
config :bobby, BobbyWeb.Endpoint,
http: [port: 4002],
secret_key_base: "whatever",
- server: false
+ server: true
+
+config :bobby, :sandbox, Ecto.Adapters.SQL.Sandbox
# Print only warnings and errors during test
config :logger, level: :warn
@@ -40,6 +42,10 @@ config :segment,
config :waffle,
storage: Waffle.Storage.Local
+config :wallaby,
+ driver: Wallaby.Chrome,
+ otp_app: :bobby
+
config :goth,
disabled: true
diff --git a/lib/bobby_web/endpoint.ex b/lib/bobby_web/endpoint.ex
index 912a3f19..0bbe6adc 100644
--- a/lib/bobby_web/endpoint.ex
+++ b/lib/bobby_web/endpoint.ex
@@ -1,6 +1,10 @@
defmodule BobbyWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :bobby
+ if sandbox = Application.get_env(:bobby, :sandbox) do
+ plug Phoenix.Ecto.SQL.Sandbox, sandbox: sandbox
+ end
+
@session_options [
store: :cookie,
key: "...",
diff --git a/test/test_helper.exs b/test/test_helper.exs
index ad18853d..570f646e 100644
--- a/test/test_helper.exs
+++ b/test/test_helper.exs
@@ -1,2 +1,4 @@
ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Bobby.Repo, :manual)
+{:ok, _} = Application.ensure_all_started(:wallaby)
+Application.put_env(:wallaby, :base_url, BobbyWeb.Endpoint.url) More info: MacOS 10.14.16
Diff of mix.exs was: + {:wallaby, "~> 0.0", runtime: false, only: :test}, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Would you be able to create a minimal reproduction repo? |
Beta Was this translation helpful? Give feedback.
-
Due to an old version being installed because of an overly strict requirement in a dependency |
Beta Was this translation helpful? Give feedback.
Due to an old version being installed because of an overly strict requirement in a dependency