|
|
|
@ -57,6 +57,8 @@ describe 'Manual scheduling', js: true do |
|
|
|
|
start_date.within_modal do |
|
|
|
|
expect(page).to have_selector('input[name="startDate"][disabled]') |
|
|
|
|
expect(page).to have_selector('input[name="endDate"][disabled]') |
|
|
|
|
expect(page).to have_selector('.datepicker-modal--action:not([disabled])', text: 'Cancel') |
|
|
|
|
expect(page).to have_selector('.datepicker-modal--action[disabled]', text: 'Save') |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
start_date.toggle_scheduling_mode |
|
|
|
@ -66,6 +68,9 @@ describe 'Manual scheduling', js: true do |
|
|
|
|
start_date.within_modal do |
|
|
|
|
expect(page).to have_selector('input[name="startDate"]:not([disabled])') |
|
|
|
|
expect(page).to have_selector('input[name="endDate"]:not([disabled])') |
|
|
|
|
expect(page).to have_selector('.datepicker-modal--action:not([disabled])', text: 'Cancel') |
|
|
|
|
expect(page).to have_selector('.datepicker-modal--action:not([disabled])', text: 'Save') |
|
|
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
start_date.cancel_by_click |
|
|
|
@ -88,6 +93,9 @@ describe 'Manual scheduling', js: true do |
|
|
|
|
start_date.within_modal do |
|
|
|
|
expect(page).to have_selector('input[name=startDate][disabled]') |
|
|
|
|
expect(page).to have_selector('input[name=endDate][disabled]') |
|
|
|
|
expect(page).to have_selector('.datepicker-modal--action:not([disabled])', text: 'Cancel') |
|
|
|
|
expect(page).to have_selector('.datepicker-modal--action[disabled]', text: 'Save') |
|
|
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
start_date.toggle_scheduling_mode |
|
|
|
|