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

Fix flaky spec

Christophe Bliard5485bbe9034e
diff --git a/spec/features/work_packages/custom_actions/custom_actions_spec.rb b/spec/features/work_packages/custom_actions/custom_actions_spec.rb
index 68d081f8e3b..485727a5a9a 100644
--- a/spec/features/work_packages/custom_actions/custom_actions_spec.rb
+++ b/spec/features/work_packages/custom_actions/custom_actions_spec.rb
@@ -508,6 +508,9 @@ RSpec.describe "Custom actions", :js, with_ee: %i[custom_actions] do
wp_page.visit!
wp_page.ensure_page_loaded
+ wait_for_network_idle
+ wp_page.expect_custom_action("Unassign")
+
# Stop sending ajax requests in order to test disabled fields upon submit
wp_page.disable_ajax_requests