Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Update capybara config for ChromeDriver 134+ (#12590)
Damian Legawiec8980e2ac9c9c
diff --git a/core/lib/spree/testing_support/capybara_config.rb b/core/lib/spree/testing_support/capybara_config.rbindex 82aed33c95..87cd073dcc 100644--- a/core/lib/spree/testing_support/capybara_config.rb+++ b/core/lib/spree/testing_support/capybara_config.rb@@ -23,5 +23,16 @@ Capybara.register_driver :selenium_chrome_headless do |app|options.add_argument '--window-size=1400,900'options.add_argument '--disable-search-engine-choice-screen'+ # Disable timers being throttled in background pages/tabs. Useful for parallel test runs.+ options.add_argument '--disable-background-timer-throttling'++ # Normally, Chrome will treat a 'foreground' tab instead as backgrounded if the surrounding window is occluded (aka+ # visually covered) by another window. This flag disables that. Useful for parallel test runs.+ options.add_argument '--disable-backgrounding-occluded-windows'++ # This disables non-foreground tabs from getting a lower process priority. Useful for parallel test runs.+ options.add_argument '--disable-renderer-backgrounding'++Capybara::Selenium::Driver.new(app, browser: :chrome, options: options)end