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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Revert "Set date with datepicker in project spec"
Benjamin Bädorf5d13f87b0574
diff --git a/spec/support/pages/projects/index.rb b/spec/support/pages/projects/index.rbindex ed3e1215759..9fcd6327bd5 100644--- a/spec/support/pages/projects/index.rb+++ b/spec/support/pages/projects/index.rb@@ -102,24 +102,15 @@ module Pagesdef set_created_at_filter(human_operator, values)case human_operator- when 'on'- set_date 'on-date-value-created_at', values.first- when 'less than days ago', 'more than days ago', 'days ago'+ when 'on', 'less than days ago', 'more than days ago', 'days ago'fill_in 'value', with: values.firstwhen 'between'- set_date 'between-dates-from-value-created_at', values.first- set_date 'between-dates-to-value-created_at', values.second+ fill_in 'from_value', with: values.first+ fill_in 'to_value', with: values.secondendend- def set_date(id, date_string)- datepicker = Components::Datepicker.new- find_by_id(id).click- datepicker.set_date(date_string)- datepicker.save!- end-- def set_custom_field_filter(selected_filter, human_operator, name, values)+ def set_custom_field_filter(selected_filter, human_operator, values)if selected_filter[:'filter-type'] == 'list_optional'if values.size == 1value_select = find('.single-select select[name="value"]')