-
Hi! I'm having issue with wallaby not able to find chromedriver:
ran with
the test file: defmodule AppWeb.LiveTitleTest do
use ExUnit.Case, async: false
use Wallaby.Feature
alias Wallaby.Query
setup do
product = App.ProductFixtures.product_fixture(%{}, :featured)
%{
default_prefix: App.app_name(),
title: product.title,
suffix_title: " | some description"
}
end
feature "change to image title when popup appears", %{
title: title,
session: session,
suffix_title: suffix_title
} do
page_title = title <> suffix_title
session
|> visit("/")
|> assert_has(Query.css("a[phx-click=show_images]"))
|> click(Query.css("a[phx-click=show_images]"))
assert page_title(session) === page_title
end
end test_helper.exs # ExUnit.configure(exclude: :feature)
ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(App.Repo, :manual)
{:ok, _} = Application.ensure_all_started(:wallaby)
Application.put_env(:wallaby, :base_url, AppWeb.Endpoint.url()) endpoint.exs defmodule AppWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :app
if sandbox = Application.get_env(:app, :sandbox) do
plug Phoenix.Ecto.SQL.Sandbox, sandbox: sandbox
end
...
config/test.exs config :app, AppWeb.Endpoint,
server: true
config :wallaby, otp_app: :app
config :app, :sandbox, Ecto.Adapters.SQL.Sandbox I don't understand why commenting |
Beta Was this translation helpful? Give feedback.
Answered by
mhanberg
Dec 2, 2022
Replies: 1 comment 1 reply
-
There error is saying it can't find Chrome, not chromedriver. Do you have Google Chrome installed? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jaeyson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There error is saying it can't find Chrome, not chromedriver.
Do you have Google Chrome installed?