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

Remove no longer needed Cuprite patch

Christophe Bliard8fd353720711
diff --git a/spec/support/cuprite_setup.rb b/spec/support/cuprite_setup.rb
index 8b0b305113d..ec2bd58fded 100644
--- a/spec/support/cuprite_setup.rb
+++ b/spec/support/cuprite_setup.rb
@@ -53,15 +53,6 @@ module WindowResolutionManagement
end
end
-# Customize browser download path until https://github.com/rubycdp/cuprite/pull/217 is released.
-module SetCupriteDownloadPath
- def initialize(app, options = {})
- super
- @options[:save_path] = DownloadList::SHARED_PATH.to_s
- end
-end
-Capybara::Cuprite::Driver.prepend(SetCupriteDownloadPath)
-
def register_better_cuprite(language, name: :"better_cuprite_#{language}")
Capybara.register_driver(name) do |app|
options = {
@@ -71,6 +62,7 @@ def register_better_cuprite(language, name: :"better_cuprite_#{language}")
# pending_connection_errors: false,
inspector: true,
headless: headless_mode?,
+ save_path: DownloadList::SHARED_PATH.to_s,
window_size: [1920, 1080]
}