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

Wait for idle in activities

Oliver Günther2f73c7010049
diff --git a/modules/my_page/spec/features/my/my_spent_time_widget_with_a_negative_time_zone_spec.rb b/modules/my_page/spec/features/my/my_spent_time_widget_with_a_negative_time_zone_spec.rb
index 7f2bd51ddbf..4c51943a37c 100644
--- a/modules/my_page/spec/features/my/my_spent_time_widget_with_a_negative_time_zone_spec.rb
+++ b/modules/my_page/spec/features/my/my_spent_time_widget_with_a_negative_time_zone_spec.rb
@@ -82,6 +82,8 @@ RSpec.describe "My spent time widget with a negative time zone", :js,
my_page.expect_and_dismiss_toaster message: I18n.t(:notice_successful_update)
+ wait_for_network_idle
+
expect(page)
.to have_content time_entry.spent_on.strftime("%-m/%-d")
diff --git a/spec/support/components/work_packages/activities.rb b/spec/support/components/work_packages/activities.rb
index cab633769ee..d7870c48bb6 100644
--- a/spec/support/components/work_packages/activities.rb
+++ b/spec/support/components/work_packages/activities.rb
@@ -164,6 +164,8 @@ module Components
wait_for { page }.to have_test_selector("op-journal-notes-body", text:)
end
end
+
+ wait_for_network_idle
end
def edit_comment(journal, text: nil)