@@ -251,8 +251,7 @@ describe('Automate Schedule form operations: Settings > Application Settings > S
251
251
'Schedule "Dummy name" was saved'
252
252
) ;
253
253
254
- /* ===== Deleting schedule ===== */
255
- deleteSchedule ( 'Dummy name' ) ;
254
+ /* ===== Delete is already handled from afterEach hook ===== */
256
255
} ) ;
257
256
258
257
it ( 'Checking whether Cancel & Reset buttons work fine in the Edit form' , ( ) => {
@@ -287,9 +286,8 @@ describe('Automate Schedule form operations: Settings > Application Settings > S
287
286
cy . get ( 'input#description' ) . should ( 'have.value' , 'Test description' ) ;
288
287
cy . get ( 'input#start_date' ) . should ( 'have.value' , '06/30/2025' ) ;
289
288
290
- /* ===== Deleting schedule ===== */
289
+ // Selecting Schedules menu item to bypass a bug, can be removed once #9505 is merged
291
290
cy . get ( '[title="Schedules"]' ) . click ( ) ;
292
- deleteSchedule ( ) ;
293
291
} ) ;
294
292
295
293
it ( 'Checking whether creating a duplicate record is restricted' , ( ) => {
@@ -301,9 +299,6 @@ describe('Automate Schedule form operations: Settings > Application Settings > S
301
299
cy . get ( '#main_div #flash_msg_div .alert-danger' ) . contains (
302
300
'Error when adding a new schedule: Validation failed: MiqSchedule: Name has already been taken'
303
301
) ;
304
-
305
- /* ===== Deleting schedule ===== */
306
- deleteSchedule ( ) ;
307
302
} ) ;
308
303
309
304
it ( 'Checking whether Disabling, Enabling & Queueing up the schedule works' , ( ) => {
@@ -329,9 +324,6 @@ describe('Automate Schedule form operations: Settings > Application Settings > S
329
324
cy . get ( '#main_div #flash_msg_div .alert-success' ) . contains (
330
325
'The selected Schedule has been queued to run'
331
326
) ;
332
-
333
- /* ===== Deleting schedule ===== */
334
- deleteSchedule ( ) ;
335
327
} ) ;
336
328
337
329
afterEach ( ( ) => {
@@ -341,7 +333,7 @@ describe('Automate Schedule form operations: Settings > Application Settings > S
341
333
invokeCleanupDeletion ( ) ;
342
334
} else {
343
335
// Navigate to Settings -> Application-Settings before looking out for Schedules created during test
344
- goToAppSettings ( ) ;
336
+ cy . menu ( 'Settings' , 'Application Settings' ) ;
345
337
invokeCleanupDeletion ( ) ;
346
338
}
347
339
} ) ;
0 commit comments