Add scenario 17

pull/11151/head
Oliver Günther 2 years ago
parent 931122eb09
commit 98dbaa368d
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 25
      spec/features/work_packages/datepicker/datepicker_logic_spec.rb

@ -406,4 +406,29 @@ describe 'Datepicker modal logic test cases (WP #43539)',
datepicker.expect_duration 4
end
end
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
end
end

Loading…
Cancel
Save