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

trying to fix flaky spec

Jonas Jabari75afa65df405
diff --git a/spec/features/activities/work_package/activities_spec.rb b/spec/features/activities/work_package/activities_spec.rb
index 6f697d627ed..5460fbd0c27 100644
--- a/spec/features/activities/work_package/activities_spec.rb
+++ b/spec/features/activities/work_package/activities_spec.rb
@@ -387,6 +387,8 @@ RSpec.describe "Work package activity", :js, :with_cuprite, with_flag: { primeri
first_journal.update!(notes: "First comment by member updated")
+ sleep 1 # avoid flaky test
+
# properly updates the comment when the comment is updated
activity_tab.expect_journal_notes(text: "First comment by member updated")
end