Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Replace the deprecated `:capabilities` parameter with `:options`

Aaron Contreras36195fa7de04
diff --git a/spec/support/browsers/firefox.rb b/spec/support/browsers/firefox.rb
index c5ca5ff0367..cadfa6f27c4 100644
--- a/spec/support/browsers/firefox.rb
+++ b/spec/support/browsers/firefox.rb
@@ -26,7 +26,7 @@ def register_firefox(language, name: :"firefox_#{language}")
options = Selenium::WebDriver::Firefox::Options.new(profile:)
- yield(profile, options, capabilities) if block_given?
+ yield(profile, options) if block_given?
unless ActiveRecord::Type::Boolean.new.cast(ENV.fetch('OPENPROJECT_TESTING_NO_HEADLESS', nil))
options.args << "--headless"
@@ -42,7 +42,7 @@ def register_firefox(language, name: :"firefox_#{language}")
browser: is_grid ? :remote : :firefox,
url: ENV.fetch('SELENIUM_GRID_URL', nil),
http_client: client,
- capabilities: options
+ options:
}
if is_grid