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 failing spec

Benjamin Bädorf3d72204b515c
diff --git a/spec/support/components/ng_select_autocomplete_helpers.rb b/spec/support/components/ng_select_autocomplete_helpers.rb
index 99b5d922810..3e5c33517ff 100644
--- a/spec/support/components/ng_select_autocomplete_helpers.rb
+++ b/spec/support/components/ng_select_autocomplete_helpers.rb
@@ -10,7 +10,7 @@ module Components
# Insert the text to find
within(element) do
- ng_enter_query(query)
+ ng_enter_query(element, query)
end
sleep(0.5)
@@ -33,8 +33,8 @@ module Components
##
# Insert the query, typing
- def ng_enter_query(query)
- input = page.find('input', visible: :all).native
+ def ng_enter_query(element, query)
+ input = element.find('input[type=text]', visible: :all).native
input.clear
query = query.to_s