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

fix test fail caused by stale shared object

Ivan Kuchin81f049996151
diff --git a/spec/features/work_packages/progress_modal_spec.rb b/spec/features/work_packages/progress_modal_spec.rb
index 922106c0ff0..c21f73a7865 100644
--- a/spec/features/work_packages/progress_modal_spec.rb
+++ b/spec/features/work_packages/progress_modal_spec.rb
@@ -415,6 +415,8 @@ RSpec.describe "Progress modal", :js, :with_cuprite do
describe "When % Complete is set + work and remaining work are unset coming from a migration" do
before_all do
+ work_package.reload
+
work_package.estimated_hours = nil
work_package.remaining_hours = nil
work_package.done_ratio = 5.0