Skip to content

Commit 2ec4a45

Browse files
committed
CI: Run feature tests with Firefox
Chrome is a buggy piece of...
1 parent 14b9b7b commit 2ec4a45

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
rails-version: "8.0"
4646
env:
4747
TEST_RESULTS_PATH: coverage/coverage.xml
48+
CAPYBARA_JAVASCRIPT_DRIVER: selenium_headless
4849
steps:
4950
- uses: actions/checkout@v4
5051
- name: Run extension tests

spec/spec_helper.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
# Requires factories and other useful helpers defined in spree_core.
1717
require "solidus_dev_support/rspec/feature_helper"
1818

19+
Capybara::Screenshot.register_driver(:selenium_headless) do |driver, path|
20+
driver.browser.save_screenshot(path)
21+
end
22+
23+
Capybara.javascript_driver = :selenium_headless
24+
1925
# Requires supporting ruby files with custom matchers and macros, etc,
2026
# in spec/support/ and its subdirectories.
2127
Dir["#{__dir__}/support/**/*.rb"].sort.each { |f| require f }

0 commit comments

Comments
 (0)