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

Pin Chromedriver to the last version that was released in the old way compatible

Klaus Zanders10a488e9bade
diff --git a/config/environments/test.rb b/config/environments/test.rb
index 58a84b28d1e..1c1a2072f19 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -87,7 +87,7 @@ OpenProject::Application.configure do
# Raises error for missing translations
# config.action_view.raise_on_missing_translations = true
- config.cache_store = :file_store, Rails.root.join("tmp", "cache", "paralleltests#{ENV['TEST_ENV_NUMBER']}")
+ config.cache_store = :file_store, Rails.root.join("tmp", "cache", "paralleltests#{ENV.fetch('TEST_ENV_NUMBER', nil)}")
if ENV['TEST_ENV_NUMBER']
assets_cache_path = Rails.root.join("tmp/cache/assets/paralleltests#{ENV['TEST_ENV_NUMBER']}")
@@ -96,4 +96,8 @@ OpenProject::Application.configure do
# Speed up tests by lowering BCrypt's cost function
BCrypt::Engine.cost = BCrypt::Engine::MIN_COST
+
+ # Pin Chromedriver version to last version that was released the "old way"
+ # See https://github.com/titusfortner/webdrivers/issues/247
+ Webdrivers::Chromedriver.required_version = "114.0.5735.90"
end