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

try to avoid flaky spec

Jonas Jabari40f576c5f6e2
diff --git a/spec/support/components/work_packages/activities.rb b/spec/support/components/work_packages/activities.rb
index b35ce32150b..351de2ba560 100644
--- a/spec/support/components/work_packages/activities.rb
+++ b/spec/support/components/work_packages/activities.rb
@@ -65,6 +65,7 @@ module Components
# helpers for new primerized activities
def within_journal_entry(journal, &)
+ wait_for { page }.to have_test_selector("op-wp-journal-entry-#{journal.id}") # avoid flakyness
page.within_test_selector("op-wp-journal-entry-#{journal.id}", &)
end