21
1
Fork 0
mirror of https://github.com/Evolix/chexpire.git synced 2024-05-03 01:10:50 +02:00

Capybara: fixed screenshot in system cases

This commit is contained in:
Colin Darie 2018-07-05 12:26:00 +02:00
parent 837f48ff81
commit fac8d88d38
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
2 changed files with 2 additions and 1 deletions

View file

@ -4,7 +4,7 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :headless_chrome driven_by :headless_chrome
def teardown def teardown
Capybara.reset_sessions!
Warden.test_reset! Warden.test_reset!
super
end end
end end

View file

@ -42,6 +42,7 @@ Capybara.register_driver :headless_chrome do |app|
end end
Capybara.save_path = Rails.root.join("tmp/capybara") Capybara.save_path = Rails.root.join("tmp/capybara")
Capybara.javascript_driver = :headless_chrome Capybara.javascript_driver = :headless_chrome
Capybara.default_driver = :headless_chrome
# Disable Open4 real system calls # Disable Open4 real system calls
require "open4" require "open4"