Remove test case 5a as separated into test case 15

pull/11151/head
Oliver Günther 2 years ago
parent 9167a49ee3
commit 42212653b9
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 27
      spec/features/work_packages/datepicker/datepicker_logic_spec.rb
  2. 8
      spec/support/components/datepicker/work_package_datepicker.rb

@ -206,33 +206,6 @@ describe 'Datepicker modal logic test cases (WP #43539)',
end
end
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)' do
let(:current_attributes) do
{

@ -89,6 +89,14 @@ module Components
start_date_field.click
end
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_duration
duration = find_field 'duration'
duration.click

Loading…
Cancel
Save