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
Add scenario 17
Oliver Günther98dbaa368d4d
diff --git a/spec/features/work_packages/datepicker/datepicker_logic_spec.rb b/spec/features/work_packages/datepicker/datepicker_logic_spec.rbindex 09bb7c387a1..d97244167d2 100644--- a/spec/features/work_packages/datepicker/datepicker_logic_spec.rb+++ b/spec/features/work_packages/datepicker/datepicker_logic_spec.rb@@ -406,4 +406,29 @@ describe 'Datepicker modal logic test cases (WP #43539)',datepicker.expect_duration 4endend++ describe 'when all values set and include NWD true, changing include NWD to false (Scenario 17)' do+ let(:current_attributes) do+ {+ start_date: Date.parse('2021-02-13'),+ due_date: Date.parse('2021-02-14'),+ duration: 2,+ ignore_non_working_days: true+ }+ end++ it 'sets start to 15th, finish date to 16th' do+ datepicker.expect_start_date '2021-02-13'+ datepicker.expect_due_date '2021-02-14'+ datepicker.expect_duration 2+ datepicker.expect_ignore_non_working_days true++ datepicker.ignore_non_working_days false++ datepicker.expect_ignore_non_working_days false+ datepicker.expect_start_date '2021-02-15'+ datepicker.expect_due_date '2021-02-16'+ datepicker.expect_duration 2+ end+ endend