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: Retry until ng-select is ready to accept events

Aaron Contreras60205685d9a2
diff --git a/spec/support/pages/admin/custom_actions/form.rb b/spec/support/pages/admin/custom_actions/form.rb
index 9b5460af14f..89d862f18c7 100644
--- a/spec/support/pages/admin/custom_actions/form.rb
+++ b/spec/support/pages/admin/custom_actions/form.rb
@@ -86,10 +86,12 @@ module Pages
def set_condition(name, value)
Array(value).each do |val|
- set_condition_value(name, val)
+ retry_block do
+ set_condition_value(name, val)
- within '#custom-actions-form--conditions' do
- expect_selected_option val
+ within '#custom-actions-form--conditions' do
+ expect_selected_option val
+ end
end
end
end