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

remove static sleep as the stimulus component connection is handeled in wait_for_activity_tab method now

Jonas Jabarib018e2b93094
diff --git a/spec/support/components/work_packages/activities.rb b/spec/support/components/work_packages/activities.rb
index 5f3601e6867..b35ce32150b 100644
--- a/spec/support/components/work_packages/activities.rb
+++ b/spec/support/components/work_packages/activities.rb
@@ -155,8 +155,6 @@ module Components
end
def add_comment(text: nil, save: true)
- sleep 1 # otherwise the stimulus component is not mounted yet and the click does not work
-
if page.find_test_selector("op-open-work-package-journal-form-trigger")
open_new_comment_editor
else
@@ -192,8 +190,6 @@ module Components
end
def quote_comment(journal)
- sleep 1 # otherwise the stimulus component is not mounted yet and the click does not work
-
within_journal_entry(journal) do
page.find_test_selector("op-wp-journal-#{journal.id}-action-menu").click
page.find_test_selector("op-wp-journal-#{journal.id}-quote").click