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

Retry loading time entry

Oliver Günthere872397e35cf
diff --git a/modules/costs/spec/features/time_entry_dialog_spec.rb b/modules/costs/spec/features/time_entry_dialog_spec.rb
index a4b3c7aff54..05415697822 100644
--- a/modules/costs/spec/features/time_entry_dialog_spec.rb
+++ b/modules/costs/spec/features/time_entry_dialog_spec.rb
@@ -232,9 +232,10 @@ RSpec.describe "time entry dialog", :js, with_flag: :track_start_and_end_times_f
time_logging_modal.submit
end.not_to change(TimeEntry, :count)
- time_entry.reload
-
- expect(time_entry.work_package).to eq(work_package_b)
+ retry_block do
+ time_entry.reload
+ expect(time_entry.work_package).to eq(work_package_b)
+ end
end
end
end