diff --git a/.circleci/config.yml b/.circleci/config.yml index a6796624..42b5c2a2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -84,6 +84,9 @@ commands: mix-test: description: Runs all tests via mix steps: + - run: + name: generate static files + command: MIX_ENV=test mix phx.digest - run: name: Run tests command: MIX_ENV=test mix test diff --git a/config/test.exs b/config/test.exs index 9f83bf69..0feea50d 100644 --- a/config/test.exs +++ b/config/test.exs @@ -72,4 +72,9 @@ config :dpul_collections, :figgy_hydrator, poll_interval: 50 config :dpul_collections, :web_connections, figgy_url: "https://figgy.example.com" -config :wallaby, otp_app: :dpul_collections +config :wallaby, + otp_app: :dpul_collections, + screenshot_on_failure: true, + chromedriver: [ + headless: true # change to false if you want to see the browser in action + ]