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
Remove test case 5a as separated into test case 15
Oliver Günther42212653b96f
diff --git a/spec/features/work_packages/datepicker/datepicker_logic_spec.rb b/spec/features/work_packages/datepicker/datepicker_logic_spec.rbindex f113d727de5..6fe2c9a8f6f 100644--- a/spec/features/work_packages/datepicker/datepicker_logic_spec.rb+++ b/spec/features/work_packages/datepicker/datepicker_logic_spec.rb@@ -206,33 +206,6 @@ describe 'Datepicker modal logic test cases (WP #43539)',endend- describe 'when all values set and include NWD, reduce duration (test case 5a)' do- let(:current_attributes) do- {- start_date: Date.parse('2021-02-08'),- due_date: Date.parse('2021-02-22'),- duration: 11,- ignore_non_working_days: true- }- end-- it 'sets the duration to 10' do- datepicker.expect_start_date '2021-02-08'- datepicker.expect_due_date '2021-02-22'- datepicker.expect_duration 11-- datepicker.set_duration 10-- datepicker.expect_start_date '2021-02-08'- datepicker.expect_due_date '2021-02-21'- datepicker.expect_duration 10-- apply_and_expect_saved duration: 12,- start_date: Date.parse('2021-02-08'),- due_date: Date.parse('2021-02-21')- end- end-describe 'when all values set, remove duration (test case 6)' dolet(:current_attributes) do{diff --git a/spec/support/components/datepicker/work_package_datepicker.rb b/spec/support/components/datepicker/work_package_datepicker.rbindex 641bf9c7cf1..83dc80a214c 100644--- a/spec/support/components/datepicker/work_package_datepicker.rb+++ b/spec/support/components/datepicker/work_package_datepicker.rb@@ -89,6 +89,14 @@ module Componentsstart_date_field.clickend+ def ignore_non_working_days(val)+ if val+ container.click_on 'Include non-working days'+ else+ container.click_on 'Working days only'+ end+ end+def clear_durationduration = find_field 'duration'duration.click