@@ -137,14 +137,14 @@ def expect_dates(work_package, start_date, due_date)
137
137
end
138
138
139
139
it "can toggle the scheduling mode through the date modal" do
140
- pending "disable this spec until it's being fixed"
141
140
expect ( wp . schedule_manually ) . to be_falsey
142
141
143
142
# Editing the start/due dates of a parent work package is possible if the
144
143
# work package is manually scheduled
145
144
combined_field . activate! ( expect_open : false )
146
145
combined_field . expect_active!
147
146
combined_field . toggle_scheduling_mode # toggle to manual mode
147
+ combined_field . expect_manual_scheduling_mode
148
148
combined_field . update ( %w[ 2016-01-05 2016-01-10 ] , save : false )
149
149
combined_field . expect_duration 6
150
150
combined_field . save!
@@ -184,6 +184,7 @@ def expect_dates(work_package, start_date, due_date)
184
184
combined_field . activate! ( expect_open : false )
185
185
combined_field . expect_active!
186
186
combined_field . toggle_scheduling_mode # toggle to automatic mode
187
+ combined_field . expect_automatic_scheduling_mode
187
188
combined_field . save!
188
189
189
190
work_packages_page . expect_and_dismiss_toaster message : "Successful update."
@@ -214,9 +215,7 @@ def expect_dates(work_package, start_date, due_date)
214
215
combined_field . activate! ( expect_open : false )
215
216
combined_field . expect_active!
216
217
combined_field . toggle_scheduling_mode # toggle to manual mode
217
-
218
- # The calendar needs some time to get initialized.
219
- sleep 2
218
+ combined_field . expect_manual_scheduling_mode
220
219
combined_field . expect_calendar
221
220
222
221
# Increasing the duration while at it
@@ -254,6 +253,7 @@ def expect_dates(work_package, start_date, due_date)
254
253
combined_field . activate! ( expect_open : false )
255
254
combined_field . expect_active!
256
255
combined_field . toggle_scheduling_mode
256
+ combined_field . expect_automatic_scheduling_mode
257
257
combined_field . save!
258
258
259
259
work_packages_page . expect_and_dismiss_toaster message : "Successful update."
0 commit comments