Skip to content

Commit

Permalink
Merge pull request #190 from tvdeyen/fix-screenshot-driver
Browse files Browse the repository at this point in the history
Configure solidus_chrome_headless as capybara-screenshot driver
  • Loading branch information
mergify[bot] authored Sep 8, 2022
2 parents de36a2d + fe9ec8a commit 07737e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 6 additions & 0 deletions lib/solidus_dev_support/rspec/capybara.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,10 @@
end
end

require 'capybara-screenshot/rspec'

Capybara::Screenshot.register_driver(:solidus_chrome_headless) do |driver, path|
driver.browser.save_screenshot(path)
end

require 'spree/testing_support/capybara_ext'
2 changes: 0 additions & 2 deletions lib/solidus_dev_support/rspec/feature_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
#

require 'solidus_dev_support/rspec/rails_helper'

require 'capybara-screenshot/rspec'
require 'solidus_dev_support/rspec/capybara'

def dev_support_assets_preload
Expand Down

0 comments on commit 07737e3

Please sign in to comment.