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

Revert "Make the Components::Datepicker#container method to search for context in the whole document, instead of the page scope which can be bound in a "within" matcher"

Benjamin Bädorf1994a4986ab8
diff --git a/spec/support/components/datepicker/datepicker.rb b/spec/support/components/datepicker/datepicker.rb
index 624f97e323d..6b7c878ff41 100644
--- a/spec/support/components/datepicker/datepicker.rb
+++ b/spec/support/components/datepicker/datepicker.rb
@@ -29,7 +29,7 @@ module Components
end
def container
- page.document.find(context_selector)
+ page.find(context_selector)
end
def flatpickr_container
diff --git a/spec/support/pages/projects/index.rb b/spec/support/pages/projects/index.rb
index 9fcd6327bd5..c10f9a283a7 100644
--- a/spec/support/pages/projects/index.rb
+++ b/spec/support/pages/projects/index.rb
@@ -76,7 +76,7 @@ module Pages
set_created_at_filter(human_operator, values)
elsif name =~ /cf_\d+/
select(human_operator, from: 'operator')
- set_custom_field_filter(selected_filter, human_operator, name, values)
+ set_custom_field_filter(selected_filter, human_operator, values)
end
end
end
@@ -118,7 +118,7 @@ module Pages
end
elsif selected_filter[:'filter-type'] == 'date'
if human_operator == 'on'
- set_date "on-date-value-#{name}", values.first
+ fill_in 'value', with: values.first
end
end
end