Skip to content

Commit

Permalink
Use ChromeDriver, because phantomjs doesn't work.
Browse files Browse the repository at this point in the history
No idea why, I'm quite sure phantomjs used to work,
but it doesn't at the moment :(

possibly: ariya/phantomjs#14211
  • Loading branch information
patrickdavey committed Mar 24, 2017
1 parent 07beabc commit 60fe502
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/test
@@ -1,6 +1,6 @@
#!/bin/bash
set -e
phantomjs --wd > /dev/null &
chromedriver > /dev/null &
pid=$!
trap "kill $pid" INT TERM EXIT
mix test --include feature --include production_api_test
3 changes: 2 additions & 1 deletion config/test.exs
Expand Up @@ -17,4 +17,5 @@ config :caster, Caster.Repo,
pool: Ecto.Adapters.SQL.Sandbox,
ownership_timeout: 30_000

config :hound, driver: "phantomjs"
# config :hound, driver: "phantomjs"
config :hound, driver: "chrome_driver"
1 change: 1 addition & 0 deletions test/features/cast_feature_test.exs
Expand Up @@ -11,6 +11,7 @@ defmodule Caster.Features.CastTest do
Repo.insert!(%VimCast{title: "happy", url: "a"})
navigate_to("/casts?source=vimcast")
element_text = find_element(:css, "h1") |> visible_text

assert Regex.match?(~r/Vimcasts/, element_text)
assert Regex.match?(~r/happy/, visible_page_text())
end
Expand Down

0 comments on commit 60fe502

Please sign in to comment.