|
|
|
@ -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 |
|
|
|
|