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 fixing flaky custom_actions_spec

Christophe Bliard8e7607a5b226
diff --git a/spec/support/pages/admin/custom_actions/form.rb b/spec/support/pages/admin/custom_actions/form.rb
index 89d862f18c7..6fdc5c39bcc 100644
--- a/spec/support/pages/admin/custom_actions/form.rb
+++ b/spec/support/pages/admin/custom_actions/form.rb
@@ -123,10 +123,12 @@ module Pages
end
target = page.find_field(name)
+ has_no_css?('.ng-spinner-loader') # wait for possible async loading of options for ng-select
target.send_keys val
end
if autocomplete
+ has_no_css?('.ng-spinner-loader') # wait for possible async loading of options for ng-select
dropdown_el = find('.ng-option', text: val, wait: 5)
scroll_to_and_click(dropdown_el)
end