Commit 652c15b5 authored by Robert Speicher's avatar Robert Speicher

Don't use capybara-screenshot in CI environments

parent 38759307
...@@ -16,7 +16,9 @@ end ...@@ -16,7 +16,9 @@ end
Capybara.default_wait_time = timeout Capybara.default_wait_time = timeout
Capybara.ignore_hidden_elements = false Capybara.ignore_hidden_elements = false
require 'capybara-screenshot/spinach' unless ENV['CI'] || ENV['CI_SERVER']
require 'capybara-screenshot/spinach'
# Keep only the screenshots generated from the last failing test suite # Keep only the screenshots generated from the last failing test suite
Capybara::Screenshot.prune_strategy = :keep_last_run Capybara::Screenshot.prune_strategy = :keep_last_run
end
...@@ -13,7 +13,9 @@ end ...@@ -13,7 +13,9 @@ end
Capybara.default_wait_time = timeout Capybara.default_wait_time = timeout
Capybara.ignore_hidden_elements = true Capybara.ignore_hidden_elements = true
require 'capybara-screenshot/rspec' unless ENV['CI'] || ENV['CI_SERVER']
require 'capybara-screenshot/rspec'
# Keep only the screenshots generated from the last failing test suite # Keep only the screenshots generated from the last failing test suite
Capybara::Screenshot.prune_strategy = :keep_last_run Capybara::Screenshot.prune_strategy = :keep_last_run
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment